palmtree Posted May 24, 2011 Share Posted May 24, 2011 I was needing to delete the John Doe order from my admin so, I used the $this->delete = true; on my adminOrders.php as per topic http://www.prestashop.com/forums/viewthread/24710/P15/module_delete_test_orders ..but the command deleted all the orders tab in my BO.I freaked out so, to restore it, I remodified my file as it was before the modif but the order admin tab is still not appearing.I don't understand because my settings are :Force compile:Yes Cache: NoThis command was used in V 1.3 and I am running V 1.4...What happened ?How can I restore my Order tabb ?THANK YOU !!!EDIT : I attached a Screenshot of the page :-( Link to comment Share on other sites More sharing options...
chienandalu Posted May 24, 2011 Share Posted May 24, 2011 It looks like it's crashing for whatever reason. Good news is your order should be safe, though. If you attach your adminOrders.php we can check what's wrong with it. Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 Great to read you !Here is the adminOrder.php ( this one is the original one after I delted the new stupid function I inserted - as per my first topic -) Link to comment Share on other sites More sharing options...
chienandalu Posted May 24, 2011 Share Posted May 24, 2011 Here's the bug (line 549): echo ''.stripslashes($state['name']).''; It should be like this: echo ''.stripslashes($state['name']).''; $currentStateTab had unclosed quotes and no variable. Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 Waow...I want to try this of course, but before doing anything, may I ask why this line has changed ?I did not touch it... :roll:EDIT : It is the file as per PRESTA download ZIP...Odd. ( see attachment)Nobody can help me ? My case looks unsolvable...How come ?Reuploading the initial php file should have done it.What is happening ? Link to comment Share on other sites More sharing options...
chienandalu Posted May 24, 2011 Share Posted May 24, 2011 How could I know? I made a file diff comparison between yours and mine and that's what showd up. Anyway, you could check your file permissions. It should be set to (at least) 644. Maybe once you restored your local file you lost old permissions. Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 ...are you running the same version as mine aka V 1.4.1 ?Because your file should not have this line as currentStateTab['id_order_state']I am frustated right now. Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 No problem with file permission...even did via control panel from my server. I am getting NUTS. Link to comment Share on other sites More sharing options...
chienandalu Posted May 24, 2011 Share Posted May 24, 2011 Well, you can check php errors display in /config/config.inc.php so we'll see what's complaining about. @ini_set('display_errors', 'on'); Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 Sorry for late come back...Well guess what comes out : Parse error: syntax error, unexpected T_STRING, expecting ']' in tabs/AdminOrders.php on line 549exactly what you said !!!!!!! Link to comment Share on other sites More sharing options...
chienandalu Posted May 24, 2011 Share Posted May 24, 2011 There you go. Who knows where this bug comes from anyway. It's not in my 1.4.0.17 shop and not in 1.4.1 version either... Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 ok...I try now...we'll see Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 IT WORKS !!!!!!You are the one ! :coolsmile: I should have done that from your first reply...but was scared....THANK YOU THANK YOU XXXXXXXXXXXXXX :-) I spent almost all day on this...Amazing.What a strange thing...Cheers and Happy Coding to you! Link to comment Share on other sites More sharing options...
chienandalu Posted May 24, 2011 Share Posted May 24, 2011 You're welcome. Remember to turn off php display errors. I recommend you to edit your post in wich you published your admin directory also (just for security reasons). And you shouldn't be afraid of enabling order deleting now.ps.: did I win a trip to Maldivas? Link to comment Share on other sites More sharing options...
palmtree Posted May 24, 2011 Author Share Posted May 24, 2011 :cheese: Ah...If could send you right there under the Palm trees ;-) There are amazing !!!Btw, thank you for the last tips about the folder name...HORROR. I did not even realize in my rush. I hope this is not too late..You are not so Beginner...You are Great. Link to comment Share on other sites More sharing options...
mikkelson Posted August 18, 2011 Share Posted August 18, 2011 I made the same trick that palmtree made with the same result. I set on the php errors display and i got Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../AdminOrders.php on line 559. I tried the code what chienandalu gave to palmtree but it didn´t work. Could anyone help me with this please?? My shop is ready to open when I get over this problem. I´m not familiar with php language but I can make modifications with my dreamweaver mx. Link to comment Share on other sites More sharing options...
mikkelson Posted August 18, 2011 Share Posted August 18, 2011 I made the same trick that palmtree made with the same result. I set on the php errors display and i got Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../AdminOrders.php on line 559. I tried the code what chienandalu gave to palmtree but it didn´t work. Could anyone help me with this please?? My shop is ready to open when I get over this problem. I´m not familiar with php language but I can make modifications with my dreamweaver mx. This is the line 559: echo ' $currentStateTab = $order->getCurrentStateFull($cookie->id_lang)'; Can anyone see if there is a missing comma or something else? Link to comment Share on other sites More sharing options...
mikkelson Posted August 18, 2011 Share Posted August 18, 2011 SOLVED by myself. Just unzipped the file AdminOrders.php from install files and uploaded it into server and thats it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now