Dan Baciu Posted April 1, 2018 Share Posted April 1, 2018 (edited) Hi everyone, I occurred some 500 errors and the images are missing in the products pages and few some other places. Mostly of the images are show in the category pages excepting when I am deleting and uploading new images. I deleted my httaccess file and I tried to regenerate it. When I turned off the accented URL and friendly URL buttons an 500 error appear. I cannot switch them off to regenerate the httaccess file. I successfully regenerated the thumbnails of the images. I also checked the images folders permission. Since today everything was fine but today it appears. Today I did some modifies at the robots.txt file, then the website collapse (500 error front and back office). I reupload the previous robots.txt file and I cleared the cache and I have again access at the front and back office again with the above mentioned issues. The change that I made at the robots.txt file before collapse was: I excluded the “Disallow: */modules/ “ command from the robots txt file. I did this exclusion because in the webmasters tool I got the warning that some indexed ( 75 URLs ) are blocked by the robots.txt Since now, I didn't find any way to restore the the missing images and to make the back office working correctly (switching off the friendly url and accented URL buttons). Any ideas how to fix it? Thank you in advance! Edited April 4, 2018 by Dan Baciu (see edit history) Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 1, 2018 Author Share Posted April 1, 2018 I forgot, website: www.ieromaneasca.com Link to comment Share on other sites More sharing options...
musicmaster Posted April 1, 2018 Share Posted April 1, 2018 Please switch on debug mode and report the error messages: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 2, 2018 Author Share Posted April 2, 2018 (edited) Thank you for the answer! The message in debug mode is: Fatal error: Uncaught Error: Access to undeclared static property: Validate::$values in /home/ierom/public_html/classes/controller/AdminController.php:1150 Stack trace: #0 /home/ierom/public_html/classes/controller/AdminController.php(699): AdminControllerCore->processUpdateOptions() #1 /home/ierom/public_html/controllers/admin/AdminMetaController.php(414): AdminControllerCore->postProcess() #2 /home/ierom/public_html/classes/controller/Controller.php(171): AdminMetaControllerCore->postProcess() #3 /home/ierom/public_html/classes/Dispatcher.php(373): ControllerCore->run() #4 /home/ierom/public_html/admin5726/index.php(54): DispatcherCore->dispatch() #5 {main} thrown in /home/ierom/public_html/classes/controller/AdminController.php on line 1150 Edited April 2, 2018 by Dan Baciu (see edit history) Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 2, 2018 Author Share Posted April 2, 2018 (edited) the above mentioned error is when trying to turn off friendly url in debug mode - my 1150 line in admincontroller.php is: if (!Validate::$values['validation'](Tools::getValue($field))) Edited April 2, 2018 by Dan Baciu (see edit history) Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 2, 2018 Author Share Posted April 2, 2018 (edited) 13 hours ago, musicmaster said: Please switch on debug mode and report the error messages: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Above you have the error message. Thank you in advance! Edited April 2, 2018 by Dan Baciu (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted April 2, 2018 Share Posted April 2, 2018 Why don't you tell that you are using something that takes the product numbers from the product urls? Please ask the person who implemented that. Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 2, 2018 Author Share Posted April 2, 2018 (edited) I am using one purchased SEO module that is doing this. But it was working with this module one month since yesterday. Edited April 2, 2018 by Dan Baciu (see edit history) Link to comment Share on other sites More sharing options...
pablomarti1470 Posted April 2, 2018 Share Posted April 2, 2018 This module is a problem. Active the debug mode and disable this module. Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 2, 2018 Author Share Posted April 2, 2018 I disable it, I cleared cache, and still not working Link to comment Share on other sites More sharing options...
musicmaster Posted April 2, 2018 Share Posted April 2, 2018 I see still urls without numbers... Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 2, 2018 Author Share Posted April 2, 2018 I also see it... but I disabled the module and I cleared cache... Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 3, 2018 Author Share Posted April 3, 2018 7 hours ago, musicmaster said: I see still urls without numbers... Now, the id numbers are on but still no images and still cannot set some things in the back office. I also downgraded the server PHP to 5.6 Any other suggestion. Link to comment Share on other sites More sharing options...
musicmaster Posted April 3, 2018 Share Posted April 3, 2018 Did you regenerate .htaccess? Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 3, 2018 Author Share Posted April 3, 2018 35 minutes ago, musicmaster said: Did you regenerate .htaccess? the problem is that I can not regenerate it. I get error above mentioned when I switch off friendly URL Link to comment Share on other sites More sharing options...
musicmaster Posted April 3, 2018 Share Posted April 3, 2018 In that case you should just delete it. Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 3, 2018 Author Share Posted April 3, 2018 1 hour ago, musicmaster said: In that case you should just delete it. Thank you for the answers! I managed some how to delete it and to regenerated it. Pictures in the categories are shown only when the friendly URL is switch off but, I cannot access the products pages. I got the following error 500 [PrestaShopException] Invalid product varsat line 104 in file classes/Link.php 98. if (is_array($product) && isset($product['id_product'])) 99. $product = new Product($product['id_product'], false, $id_lang, $id_shop); 100. elseif ((int)$product) 101. $product = new Product((int)$product, false, $id_lang, $id_shop); 102. else 103. throw new PrestaShopException('Invalid product vars'); 104. } 105. 106. // Set available keywords 107. $params = array(); 108. $params['id'] = $product->id; LinkCore->getProductLink - [line 55 - cache/smarty/compile/36/e7/20/36e72098cdec39482c86f1ab7da573fcc414ba5f.file.hreflang_on_pages.tpl.php] - [8 Arguments] content_5ac3899a220db7_26268874 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 1848 - classes/module/Module.php] ModuleCore->display - [line 61 - modules/hreflang_on_pages/hreflang_on_pages.php] - [2 Arguments] hreflang_on_pages->hookDisplayHeader - [line 498 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 443 - classes/controller/FrontController.php] - [1 Arguments] FrontControllerCore->initContent - [line 176 - controllers/front/ProductController.php] ProductControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 3, 2018 Author Share Posted April 3, 2018 When friendly URL is on It hapened the followings: - The pictures from category disappeared . The error from Product pages disappears but I can not see the pictures in the product pages. When Friendly URL is off - The pictures in the category pages are fine but I get the previous mentioned error when I open the product page. [PrestaShopException] Invalid product varsat line 104 in file classes/Link.php Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 3, 2018 Author Share Posted April 3, 2018 At this moment, the web site is working only with friendly URL - disabled. When I turn it on, all the pictures are disappearing. I also downgraded the PHP to 5.5 and I tried some other methods but no way. Link to comment Share on other sites More sharing options...
tantan199 Posted April 4, 2018 Share Posted April 4, 2018 Try changing the line if (!Validate::$values['validation'](Tools::getValue($field))) to the following: $validation = $values['validation']; if (!Validate::$validation(Tools::getValue($field))) Link to comment Share on other sites More sharing options...
musicmaster Posted April 4, 2018 Share Posted April 4, 2018 I see there a strange module in the error messages: hreflang_on_pages Try to disable it. Link to comment Share on other sites More sharing options...
Dan Baciu Posted April 4, 2018 Author Share Posted April 4, 2018 (edited) 2 hours ago, musicmaster said: I see there a strange module in the error messages: hreflang_on_pages Try to disable it. SOLVED! The hosting fix it! Nothing about the modules. There where an Wordpress template in cPanel->XtendWeb-> Now all the modules are working fine. Thank you! Edited April 4, 2018 by Dan Baciu (see edit history) 1 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