json_encode() issue
hi
I'm gettiing this error when i try to put the files on my shared hosting,
Please advice, Thank you
Project Requirements Checker
Failed Requirements:
1. json_encode() must be available
Install and enable the JSON extension.
===========================================
-
Hi Gavin,
Thank you for contacting us.
Please make sure your server is running PHP version 8.0 or higher. Older or custom PHP configurations may cause this requirement check to fail.
If you’re unsure about your current PHP version, you can check it in your hosting control panel or ask your hosting provider to confirm and update it if needed.
Please try this and let me know how it goes.
Best regards,
Ariel H.0 -
Hi Ariel,
Thanks for the advice! Just to give you a bit more context — I'm on a shared hosting plan with multiple websites. The main site is running PHP 7.4 due to some legacy apps, but the other sites are on PHP 8.1 or higher.
I'm trying to add one of those newer sites (running 8.1+) to Brizy using the sync feature so updates are easier to manage. Would that work, or is there anything else I need to look out for?
Appreciate your help!
Gavin
0 -
Hi Gavin,
You have two options:
1. Upgrade the site to PHP 8.1 or higher, this is the recommended approach. JSON is built-in in PHP 8+, so the json_encode() error should be resolved.
2. Stay on PHP 7.4, in this case, you’ll need to contact your hosting provider and ask them to enable the JSON extension for that specific site.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
3 comments