Whippet Posted May 23, 2011 Share Posted May 23, 2011 HelloPlease help me again.While I was setting the language configuration on my site, I got this message and my shop is a blanc sheet. What is that?What can I do to fix it?Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /mnt/web2/51/49/51477749/htdocs/shop/index.php on line 29Thank youWhippet very unhappy with prestashop Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 23, 2011 Share Posted May 23, 2011 Can you zip and attach your index.php file here please ? Are you sure you have PHP 5 Oo ? Link to comment Share on other sites More sharing options...
Whippet Posted May 24, 2011 Author Share Posted May 24, 2011 HelloSorry, dont know what you mean. Where can I find the index php? Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 24, 2011 Share Posted May 24, 2011 Connect with FTP to your server, download the file index.php in the root folder of your PrestaShop, then zip it and attach it to your message, so I can check what is wrong in your file Link to comment Share on other sites More sharing options...
Whippet Posted May 24, 2011 Author Share Posted May 24, 2011 In which folder is the index.php? Because I have in each folder one index.php Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 24, 2011 Share Posted May 24, 2011 In the root folder, you will have inside a lot of files like 404.php, adress.php, orders.php, etc. Link to comment Share on other sites More sharing options...
Whippet Posted May 24, 2011 Author Share Posted May 24, 2011 ok. here i found a folder with 404.tpl adress.tpl orders.tpl. index.zip Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 24, 2011 Share Posted May 24, 2011 This is the wrong file, in need the index.php file in the main folder of your prestashop. In this folder there is an admin/ folder, an images/ folder, a classes/ folder, etc. Link to comment Share on other sites More sharing options...
Whippet Posted May 24, 2011 Author Share Posted May 24, 2011 Sorry for that. Here again. index.zip ansicht.zip Link to comment Share on other sites More sharing options...
Whippet Posted May 25, 2011 Author Share Posted May 25, 2011 Hello I delete my shop completely and install it new.Everything worked well untill I changed the language part as in the file below. After deleting spanisch, french and italien I got this messeage from my site.Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /mnt/web2/51/49/51477749/htdocs/shop/index.php on line 29Now I cant work on my site because i cant get into it. What is wrong with that file? Why it doenst work anymore?Not happy at all with my choice using presta. Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 26, 2011 Share Posted May 26, 2011 Are you sure you have PHP 5 ? Last time I saw this bug, this was a problem of PHP version. Link to comment Share on other sites More sharing options...
Whippet Posted May 26, 2011 Author Share Posted May 26, 2011 This is how my php settings looks: Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 26, 2011 Share Posted May 26, 2011 Create a file version.php at root path as your PrestaShop with the following content : <?php echo phpversion();exit; Then go at www.yourwebsite.com/prestashop_path/version.php and tell me what is printed at screen (you can delete the file next). Link to comment Share on other sites More sharing options...
Whippet Posted May 26, 2011 Author Share Posted May 26, 2011 it says:Parse error: syntax error, unexpected T_STRING in /mnt/web2/51/49/51477749/htdocs/shop/version.php on line 1 Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 26, 2011 Share Posted May 26, 2011 Ok try again with the file I attached to this message please. version.php Link to comment Share on other sites More sharing options...
Whippet Posted May 26, 2011 Author Share Posted May 26, 2011 it says 5.2.17 Link to comment Share on other sites More sharing options...
Raphaël Malié Posted May 26, 2011 Share Posted May 26, 2011 Replace the file index.php (the last one you attached here) by this one attached in my message, is it working ? index.php Link to comment Share on other sites More sharing options...
Whippet Posted May 26, 2011 Author Share Posted May 26, 2011 Hit seems like it works. but when I try to get in as admin, it doesnt let me to. Link to comment Share on other sites More sharing options...
Charlie-GDS Posted June 11, 2011 Share Posted June 11, 2011 Hi I'm also getting a similar problem coming up I get this...Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/wheater/public_html/products/address.php on line 29This happens when I want to update the address field in the checkout process.I hope you can help...Charlie Link to comment Share on other sites More sharing options...
almaruf Posted June 28, 2011 Share Posted June 28, 2011 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /mnt/web2/51/49/51477749/htdocs/shop/index.php on line 29same thing happen to my site also ..... can someone please answer quick , if there is any way around !!!! shall I upload the whole package again and install ????? Link to comment Share on other sites More sharing options...
MahmutGulerce Posted June 28, 2011 Share Posted June 28, 2011 hi;Could you try to add this line AddHandler application/x-httpd-php5 .php to your .htaccess file ? Link to comment Share on other sites More sharing options...
almaruf Posted June 28, 2011 Share Posted June 28, 2011 yeah i tried , but just made echoes of the whole index.php file .....i should mention - this thing happend when I tried to remove the language Italian from the back office (same as the post initiators problem) , every thing was good before that. Link to comment Share on other sites More sharing options...
MahmutGulerce Posted June 28, 2011 Share Posted June 28, 2011 yeah i tried , but just made echoes of the whole index.php file .....i should mention - this thing happend when I tried to remove the language Italian from the back office (same as the post initiators problem) , every thing was good before that. but this is a syntax error, means unknown code when compiling cannot parse your php code. So it can not be associated with prestashop if you dont edit any source code.this error usually occurs in PHP 4. Due to php 4 didnot support MVC object technic. Like Class::Function();Your index file line line 29 ControllerFactory::getController('IndexController')->run(); Link to comment Share on other sites More sharing options...
almaruf Posted June 28, 2011 Share Posted June 28, 2011 basically i didnot change any of the codes in this shop. just entering data , but while was trying to remove the language it just happend. I wudl suggest a through check of this laguage module , I dont think it is a php version problem anyway.Thanks fr ur reply anyway , nd yeah in line 29 it is the same line u say, but wht does it mean , i dont know.yeah this is a syntex error, that to me means something happend to the codes, while i was trying to remove the language from the back office. I dont know the procedure for bug reporting , if someone else has the same problem , we should report it as a bug init ? Link to comment Share on other sites More sharing options...
jluisjuncal Posted July 5, 2011 Share Posted July 5, 2011 Hello, I had the same problem. I solve it adding SetEnv PHP_VER 5 in .htaccess. It's occurs cause prestashop sets this file when you modify language settings. Good luck. humus de lombriz para cesped pellets de madera Link to comment Share on other sites More sharing options...
jatinonline Posted September 3, 2012 Share Posted September 3, 2012 Hi,guys please give me instruction to solve same problem @Raphaël Malié after replace index.php with you index.php file.... show blank page after apply this..... my php version 4.4.7 Link to comment Share on other sites More sharing options...
guidoakd Posted September 27, 2013 Share Posted September 27, 2013 any help with this? im having 4.4.9 version of php Link to comment Share on other sites More sharing options...
killerkhan Posted October 15, 2015 Share Posted October 15, 2015 Hello, I had the same problem. I solve it adding SetEnv PHP_VER 5 in .htaccess. It's occurs cause prestashop sets this file when you modify language settings. Good luck. humus de lombriz para cesped pellets de madera Hello all, This solution works for me. I just added the line SetEnv PHP_VER 5 in my .htaccess file and the site works well. Before adding this line my PHP Version was 4.4.9 but after addition it is showing 5.2.17. My Prestashop version is 1.6.1.1 Thanks, 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