Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1158535

    I am receiving this error in the backend of my admin:

    Notice: Trying to get property ‘item_id’ of non-object in /var/www/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 93

    I am running WordPress 5.3, PHP 7.2, Enfold 4.6.3.1
    I saw a previous thread on how to hide it, but I am interested in how to fix it.
    Thank you.

    #1158728

    Hey classywebsites,

    Thanks for the login details, does your site have a URL as well? The notice you are seeing should not affect any functionality on your site. Please check your debug settings, if debug is on then you can turn it off if you like: https://wordpress.org/support/article/debugging-in-wordpress/

    Best regards,
    Rikard

    #1158812

    Hi Rikard,

    Yes, it has a url. Please see private content.
    Thank you for the link on how to hide it, but I am interested in how to fix it.
    The error in the backend of my admin: is related to Enfold:
    Notice: Trying to get property ‘item_id’ of non-object in /var/www/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 93

    Thank you.

    #1159002

    Hi,

    Thanks for that, though I can’t see any error messages on the backend of your installation. Where exactly are you seeing it?

    I see that you haven’t added a token to your theme, please consider doing that: https://kriesi.at/documentation/enfold/theme-registration/

    Best regards,
    Rikard

    #1159214

    Hi Rikard,

    Please see the private content for a screenshot of the error.
    I added the token to the parent theme, not the child theme, in 2018. I update the parent theme, not the child theme, each time there is an update.

    Can you please help?
    Thank you.

    #1159550

    Hi,

    Thanks for that, though I still can’t see any problems on my end. Please see private.

    You should add the API key to the active theme, in your case that would be the child theme.

    Best regards,
    Rikard

    #1159593

    Hi Rikard,

    Since it appears sometimes, I took a screenshot and placed it in private content below.
    Were you able to see the screenshot?

    The reason I put the API key in the parent only and not the child is to avoid the child from being overwritten with theme updates.
    Thank you.

    #1160192

    Hi,

    Your child theme will never be overwritten on updates, that is the whole purpose of having a child theme. I saw the screenshot of the notices yes, but if it can’t be reproduced then how can we know what is causing it? Also, is something not working because of this? If not then you should be able to ignore those notices as they will likely not affect any actual functionality of the theme.

    Best regards,
    Rikard

    #1160403

    Hi Rikard,

    Now that you have confirmed that the “child theme will never be overwritten on updates”, I inserted the Envato private token and clicked “Check the private token”. And received the following message:
    We checked the token on 2019/11/26 14:37 and we were able to connect to Envato and could access the following information…

    Line 93 of wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php is:
    if ( ! in_array( $current->item_id, $purchased_ids ) )
    I am assuming it was checking for the token in the child theme.

    Everything was working prior to adding the token. I just like everything working without errors or notices (like the fact that the LayerSlider in the Enfold theme needs to be updated again). You never know if an error or notice is causing a problem you just have not noticed yet. It’s always better to get ahead of these things. Hopefully, the error will go away after I confirmed the token in the child theme.

    Thank you.

    #1161380

    Hi,

    Can you share us FTP details please?

    Best regards,
    Basilis

    #1161417

    Hi Basilis,

    The FTP details were in the private data on the top of this post.
    Rikard’s suggestion to add the Envato token to the child theme (see above) has removed the error in the child theme.
    Thank you both!

    Please close this thread.

    #1161731

    Hi,

    Great, I’m glad that you got things working and thanks for the update. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 93’ is closed to new replies.