Jump to content

HTTP ERROR 500 after changing translation


Lajos

Recommended Posts

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

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

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

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

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?

  • Like 1
Link to comment
Share on other sites

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

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.

miss.jpg.405ece6e3006c8c6fdd2e32fc329c4c8.jpg

Link to comment
Share on other sites

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 by Lajos (see edit history)
Link to comment
Share on other sites

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

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

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 by Lajos (see edit history)
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...