Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1353408

    Hi
    I have a woo commerce issue with the enfold theme

    when 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
    ——-“

    #1353411

    there 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.”

    #1353412

    I 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.15

    Error 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”

    #1353416

    Hi,

    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,
    Ismael

    #1353417

    Thanks – but the add to cart error still exists – is that a different error?

    #1353419

    Hi,

    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,
    Ismael

    #1353421

    I have not had a chance – I am traveling at the moment and just boarded a plane – it may be awhile before I can

    #1353511

    got 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

    #1353538

    Hi smarta-brett,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘woo commerce errror’ is closed to new replies.