New Landing How can we help? Themeforest Theme Support Joyn Various errors observed with debug on

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Joyn
  • #136912
    mhote
    Member
    Post count: 394

    Hi, getting lots of errors when viewing debug mode and sorting out site after going live…

    Any ideas? Thanks!

    1)

    Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4349 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4351 Notice: Trying to get property of non-object in /var/www/example.com/wp-includes/query.php on line 4353

    2) Currently had code to try to turn off product share on single products…

    // REMOVE SOCIAL SHARE SINGLE PRODUCT
    if (!function_exists(‘sf_product_share’)) {
    function sf_product_share() {
    return;
    }
     

    But when inserted into functions.php, it causes this error…

    Notice: Use of undefined constant ‘sf_product_share’ – assumed ‘‘sf_product_share’’ in /var/www/example.com/wp-content/themes/joyn-child/functions.php on line 682

    #137268
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    In the code above you are missing a closing bracket.

    It should be:

    
    // REMOVE SOCIAL SHARE SINGLE PRODUCT
    if (!function_exists(‘sf_product_share’)) {
    function sf_product_share() {
    return;
    }
    }

    Guess you have debug disable at the moment. Can you enable and give us access?

    Can you also check first if that error also appear when you have the default WordPress theme active instead of Joyn theme.

    -Rui

    #137387
    mhote
    Member
    Post count: 394
    This reply has been marked as private.
    #137484
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you check the user credentials because I can’t login with those.
    Thanks

    -Rui

    #137491
    mhote
    Member
    Post count: 394
    This reply has been marked as private.
    #137512
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Tried several things but only when activate the parent theme the error was gone.
    It seems to be related with some modifications you have made in the child theme.

    -Rui

    #139364
    mhote
    Member
    Post count: 394
    This reply has been marked as private.
    #139384
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You have to comment/uncomment pieces of code to figure out what is causing it.
    It can be some filter or hook that you have in the child theme that is causing it. Can’t see the files of your child theme.

    -Rui

    #139549
    mhote
    Member
    Post count: 394

    Thanks Rui… do you mean in child theme functions.php?

    #139599
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Yes, please check the functions.php at child theme.
    Thanks
    Mohammad

    #139606
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Yes, the functions.php or any other customization made in the child theme.
    -Rui

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register