Support » Plugin: Head & Footer Code » errors without an end, such a shame, love this plugin!

  • Resolved TekGirlyMama

    (@tekgirlymama)


    Hi Alexander,

    Loved your plugin but in past few weeks had to disable it sadly, as endless errors as soon as I enable it.
    Building a new site so it is maintenance mode by Elementor, Elementor Hello theme, only a few basic plugins I had always used on other sites but now errors all the time. Any idea how to fix this? Spasiva.

    [03-May-2021 18:12:23 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /home/yoopidooacademy.com/public_html/wp-content/plugins/head-footer-code/inc/front.php on line 164
    [03-May-2021 18:12:23 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /home/yoopidooacademy.com/public_html/wp-content/plugins/head-footer-code/inc/front.php on line 99
    [03-May-2021 18:12:23 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /home/yoopidooacademy.com/public_html/wp-content/plugins/head-footer-code/inc/front.php on line 34
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @tekgirlymama,

    Thank you for choosing Head & Footer Code for your project.

    Not sure what PHP and WordPress version you have there, and what are other basic plugins, but this notice is really strange as looks that something messes up with a global query (could not reproduce the issue on a test environment running PHP 8.0.2 and WordPress 5.7.1 with Elementor 3.2.2 and Hello Elementor theme 2.3.1, on front-end nor back-end).

    Anyway, could you try with the version from https://github.com/urosevic/head-footer-code where I have applied check to prevent these PHP notices? Just download the ZIP package, extract it, rename the directory from head-footer-code-master to head-footer-code and upload content to your server by overwriting the existing plugin version.

    Thank you in advance,
    Aleksandar

    Thread Starter TekGirlyMama

    (@tekgirlymama)

    Alexander, thank you so much for your speedy reply to my issue.
    Will be using Elelemntor’s new code snippet feature for now.

    But just to let you know my setup in case it helps you:
    UpCloud host, Ubuntu, LiteSpeed Enterprise server.
    Latest WP, maria DB.

    Server: Ubuntu 20.04 v10.3.25
    Server architecture Linux 5.4.0-52-generic x86_64
    Web server LiteSpeed
    PHP version 7.4.18 (Supports 64bit values)
    PHP SAPI litespeed
    PHP max input variables 7000
    PHP time limit 900
    PHP memory limit 5512M
    Max input time 900
    Upload max filesize 5512M
    PHP post max size 5512M
    cURL version 7.68.0 OpenSSL/1.1.1f
    Is SUHOSIN installed? No
    Is the Imagick library available? Yes
    Are pretty permalinks supported? Yes

    Theme: Hello Elementor

    Active Plugins:
    Admin Menu Editor Pro Version 2.14.1 by Janis Elsts
    Catch IDs Version 2.2 by Catch Plugins
    Companion Auto Update Version 3.8.0 by Papin Schipper
    Disable Gutenberg Version 2.4 by Jeff Starr
    Elementor Version 3.2.3 by Elementor.com
    Elementor Pro Version 3.2.1 by Elementor.com
    Hide Admin Notices Version 1.1.0 by The Easy Web Co.
    LiteSpeed Cache Version 3.6.4 by LiteSpeed Technologies
    My Custom Functions Version 4.49 by Space X-Chimp
    Post SMTP Version 2.0.23 by Yehuda Hassine
    Rank Math SEO Version 1.0.63 by Rank Math
    Salt Shaker Version 1.2.8 by Nagdy
    Two Factor Version 0.7.0 by Plugin Contributors
    WordPress Toolbar Editor Version 1.4 by Janis Elsts
    WP Armour – Honeypot Anti Spam Version 1.7.2 by Dnesscarkey
    WP Cloudflare Super Page Cache Version 4.5.1 by Optimole
    WPS Hide Login Version 1.8.5 by WPServeur, NicolasKulka, wpformation

    Hey @tekgirlymama,

    Thank you for the details about your WP stack.

    I would much appreciate it if you can help me with testing the version from https://github.com/urosevic/head-footer-code on your site, so I release a new version?

    Just download the ZIP package, extract it, rename the directory from head-footer-code-master to head-footer-code and upload content to your server by overwriting the existing plugin version.

    Thank you in advance,
    Aleksandar

    Thread Starter TekGirlyMama

    (@tekgirlymama)

    Hi Alexander,

    I followed your instructions and so far all seems just perfect. On my Litespeed server, for some unknown reason I cannot get data on error_log files just on the WP debug log and on this file also after activating your plugin and adding code to some post and all seems to work just fine so far so good.

    Thanks!
    e

    Hi @tekgirlymama,

    Perfect! Thank you very much for getting time to run tests and confirm resolved issue.

    I have released a new version of the plugin, in case you decide to use it on another project.

    Stay safe,
    Aleksandar

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘errors without an end, such a shame, love this plugin!’ is closed to new replies.