-
AuthorPosts
-
May 30, 2022 at 5:36 am #1353408
Hi
I have a woo commerce issue with the enfold themewhen you try to use the cart it gives a fatal error
this is what my techies said
“Could you kindly contact the developer to check the below error on their end.
Error log for reference:
——
[30-May-2022 01:49:03 UTC] PHP Warning: Use of undefined constant ’__return_false’ – assumed ‘’__return_false’’ (this will throw an Error in a future version of PHP) in /home/macadamiaoils/public_html/jindilli1/wp-content/themes/jindilli/functions.php on line 14
[30-May-2022 01:49:06 UTC] PHP Warning: Use of undefined constant ‘use_block_editor_for_post’ – assumed ‘‘use_block_editor_for_post’’ (this will throw an Error in a future version of PHP) in /home/macadamiaoils/public_html/jindilli1/wp-content/themes/jindilli/functions.php on line 14
[30-May-2022 01:49:06 UTC] PHP Warning: Use of undefined constant ’__return_false’ – assumed ‘’__return_false’’ (this will throw an Error in a future version of PHP) in /home/macadamiaoils/public_html/jindilli1/wp-content/themes/jindilli/functions.php on line 14
——-“May 30, 2022 at 5:43 am #1353411there were previous lines before my techies response – they were
“Upon checking, We could see the that currently the domain “jindilli.com.au” was using the altphp7.4 version on the server. Further while loading the site throwing the theme “jindilli” error. It seems the php version is not supported to the theme.
Further we have tried to change the domain php version to altphp7.2 and then the domain was loading fine but while loading the website throwing the same below theme error.”May 30, 2022 at 5:59 am #1353412I also had an email warning form the wordpress
heer it is
“When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.0
Active theme: Jindilli (version 1.0)
Current plugin: (version )
PHP version 8.0.15Error Details
=============
An error of type E_ERROR was caused in line 14 of the file /home/macadamiaoils/public_html/jindilli1/wp-content/themes/jindilli/functions.php. Error message: Uncaught Error: Undefined constant “‘use_block_editor_for_post’” in /home/macadamiaoils/public_html/jindilli1/wp-content/themes/jindilli/functions.php:14
Stack trace:
#0 /home/macadamiaoils/public_html/jindilli1/wp-settings.php(566): include()
#1 /home/macadamiaoils/public_html/jindilli1/wp-config.php(90): require_once(‘/home/macadamia…’)
#2 /home/macadamiaoils/public_html/jindilli1/wp-load.php(50): require_once(‘/home/macadamia…’)
#3 /home/macadamiaoils/public_html/jindilli1/wp-admin/admin.php(34): require_once(‘/home/macadamia…’)
#4 /home/macadamiaoils/public_html/jindilli1/wp-admin/index.php(10): require_once(‘/home/macadamia…’)
#5 {main}
thrown”May 30, 2022 at 6:38 am #1353416Hi,
Thank you for the inquiry.
The error occurred because of the following code in the functions.php file.
// Disable Gutenberg Editor add_filter(<code>use_block_editor_for_post</code>, <code>__return_false</code>);
We edited the line and replaced the backquotes with single quotes.
Best regards,
IsmaelMay 30, 2022 at 6:42 am #1353417Thanks – but the add to cart error still exists – is that a different error?
May 30, 2022 at 6:49 am #1353419Hi,
We can see the error with the cart page but we are not yet sure what is causing it. Have you tried disabling the other plugins temporarily?
Best regards,
IsmaelMay 30, 2022 at 7:03 am #1353421I have not had a chance – I am traveling at the moment and just boarded a plane – it may be awhile before I can
May 30, 2022 at 11:03 pm #1353511got it sorted – thanks
It was a plug-in – there were a couple that the client had installed that were not needed and when i removed them it worked agin ;-)
thanks again & close this ticket now
May 31, 2022 at 8:24 am #1353538Hi smarta-brett,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘woo commerce errror’ is closed to new replies.