Lajos Posted April 29, 2021 Share Posted April 29, 2021 All I did is added a missing translation for 'OUR COMPANY' - I got a green confirmation at the top right corner as well as an empty red warning. From that point, all my site is HTTP ERROR 500, nothing's working. Obviously neither does the admin panel so I can't undo it. Thanks Link to comment Share on other sites More sharing options...
musicmaster Posted April 29, 2021 Share Posted April 29, 2021 Start by enabling debug mode: 1 Link to comment Share on other sites More sharing options...
Lajos Posted April 29, 2021 Author Share Posted April 29, 2021 Thank you! Now I can indeed see tons of messages. It starts with two warnings Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/src/Adapter/EntityMapper.php on line 99 Then (1/1) ContextErrorException Notice: Trying to access array offset on value of type bool ...and dozens of red stuff, like at HookCore::callHookOn(object(statsdata), 'displayBeforeBodyClosingTag', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 927 I swear i only changed one single value. Link to comment Share on other sites More sharing options...
Lajos Posted April 29, 2021 Author Share Posted April 29, 2021 Okay I need to downgrade php version. Thanks Link to comment Share on other sites More sharing options...
Lajos Posted April 30, 2021 Author Share Posted April 30, 2021 Well, looks like whatever PHP version I set, even the recommended one, there's always an error. Now this one Fatal error: require_once(): Failed opening required '/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/var/cache/dev/appParameters.php' (include_path='/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/pear_exception:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/console_getopt:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/pear-core-minimal/src:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/archive_tar:.:/usr/php71/lib/php') in /data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/config/bootstrap.php on line 87 And also a permission error for bootstrap.php Link to comment Share on other sites More sharing options...
JBW Posted May 1, 2021 Share Posted May 1, 2021 After changing PHP Version clear cache by deleting/renaming /var/cache directory on your server 1 Link to comment Share on other sites More sharing options...
Lajos Posted May 1, 2021 Author Share Posted May 1, 2021 7 minutes ago, JBW said: After changing PHP Version clear cache by deleting/renaming /var/cache directory on your server Wow. That worked! Thank you. Link to comment Share on other sites More sharing options...
musicmaster Posted May 1, 2021 Share Posted May 1, 2021 After changing PHP version you should empty the cache. 1 Link to comment Share on other sites More sharing options...
Lajos Posted May 1, 2021 Author Share Posted May 1, 2021 Speaking of which, there's a cache folder in the root, shall I delete that one, too? I'm having login problems so it might help. Or I will just reinstall the whole thing now that I'm running the proper PHP version. Link to comment Share on other sites More sharing options...
musicmaster Posted May 1, 2021 Share Posted May 1, 2021 1 hour ago, Lajos said: Speaking of which, there's a cache folder in the root, shall I delete that one, too? I'm having login problems so it might help. Or I will just reinstall the whole thing now that I'm running the proper PHP version. No, that folder has no function. So just leave it. What kind of login problem do you have? 1 Link to comment Share on other sites More sharing options...
Lajos Posted May 1, 2021 Author Share Posted May 1, 2021 I can't remember but it wasn't wrong password, more like 'we cannot do the authorization process' or sg similar. Since then I reinstalled the whole thing now I can't even connect to my database. Same settings that worked before won't anymore. I changed localhost to the absolute address, for a moment it looked like it worked but crashed again Fatal error: require_once(): Failed opening required '/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/var/cache/dev/appParameters.php' (include_path='/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/pear_exception:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/console_getopt:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/pear-core-minimal/src:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/archive_tar:.:/usr/php73/lib/php') in /data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/config/bootstrap.php on line 87 Link to comment Share on other sites More sharing options...
musicmaster Posted May 1, 2021 Share Posted May 1, 2021 18 minutes ago, Lajos said: I can't remember but it wasn't wrong password, more like 'we cannot do the authorization process' or sg similar. Since then I reinstalled the whole thing now I can't even connect to my database. Same settings that worked before won't anymore. I changed localhost to the absolute address, for a moment it looked like it worked but crashed again Fatal error: require_once(): Failed opening required '/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/var/cache/dev/appParameters.php' (include_path='/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/pear_exception:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/console_getopt:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/pear-core-minimal/src:/data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/vendor/pear/archive_tar:.:/usr/php73/lib/php') in /data/1/4/14f67540-d183-469c-812c-d11f54bde039/oltvavagyok.hu/web/config/bootstrap.php on line 87 I don't know what you did. But it is obvious why your present settings don't work as somewhere somehow a slash is missing. Link to comment Share on other sites More sharing options...
Lajos Posted May 1, 2021 Author Share Posted May 1, 2021 (edited) Nothing, just ran the installer. But var/cache/dev/appParameters.php is a valid file, no? I mean it's not supposed to be an app folder or how do you mean with that arrow. Out of curiosity, I checked the previous install dir, and here /var/cache there was no dev folder just prod. Feel like I'm giving up that's sad coz I liked it. Edited May 1, 2021 by Lajos (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted May 2, 2021 Share Posted May 2, 2021 10 hours ago, Lajos said: Nothing, just ran the installer. But var/cache/dev/appParameters.php is a valid file, no? I mean it's not supposed to be an app folder or how do you mean with that arrow. Out of curiosity, I checked the previous install dir, and here /var/cache there was no dev folder just prod. Feel like I'm giving up that's sad coz I liked it. I was wrong. There is an appParameters.php in that directory. Prestashop uses the var/cache/dev directory when you are in debug mode and the var/cache/prod (production) directory when you are not. Link to comment Share on other sites More sharing options...
Lajos Posted May 2, 2021 Author Share Posted May 2, 2021 I deleted everything again. Fresh install. Error connecting database. I clicked on try install again, site crashed. I modified '_PS_MODE_DEV_' to true to see what's going on, reloaded page, all of a sudden installation completed. I wish it will keep running, tried other stores but PS is the best by far. But I'm worried, afraid to change anything as it will probably crash again Link to comment Share on other sites More sharing options...
Lajos Posted May 3, 2021 Author Share Posted May 3, 2021 (edited) And of course it crashed (same event I opened this thread after, adding a translation): fatal error involved appParameters.php and bootstrap.php That's an interesting thing. I thought I'd check this /var/cache/dev/appParameters.php file so I tried to download it, but Filezilla could not start transfer. I checked permissions and all nine boxes were neither checked nor empty but filled, numeric value was xxx. I set it to 775 and site is running again. Now every time I change the translation I have to do the above again and again. Edited May 3, 2021 by Lajos (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