• PilotPress PHP Errors in latest version – I am finding the plugin slowing down the site – Query Monitor points the finger at Pilotpress

    
    [24-Apr-2018 06:45:36 UTC] PHP Strict Standards:  Accessing static property PilotPress::$stashed_transients as non static in /home/theloft/public_html/wp-content/plugins/pilotpress/pilotpress.php on line 1149
    [24-Apr-2018 06:45:47 UTC] PHP Notice:  Undefined index: authenticate_user in /home/theloft/public_html/wp-content/plugins/pilotpress/pilotpress.php on line 3087
    [24-Apr-2018 06:45:48 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/theloft/public_html/wp-content/plugins/pilotpress/pilotpress.php on line 3919
    

    Invalid argument supplied for foreach()

    wp-content/plugins/pilotpress/pilotpress.php:3919

    do_action(‘admin_footer’)
    wp-admin/admin-footer.php:72
    PilotPress->grab_mce_fields()
    wp-includes/class-wp-hook.php:286

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have a support ticket open with ONTRAPORT on this @neilgee?

    We’ll want our developers to take a look and see what’s up. I can create a ticket for you but will need to know the account number of the connected ONTRAPORT account.

    Thread Starter neilgee

    (@neilgee)

    this notice seems to be on all sites..

    
    10-Jul-2018 15:23:11 UTC] PHP Notice:  Undefined index: authenticate_user in /home/180099.cloudwaysapps.com/vawdssctxv/public_html/wp-content/plugins/pilotpress/pilotpress.php on line 3087
    
    • This reply was modified 6 years, 4 months ago by neilgee.
    • This reply was modified 6 years, 4 months ago by neilgee.

    PHP will throw notices all the time. If this is in a testing environment you can safely ignore it. If it is in a production environment you should have notices turned off so they do not “break” your design.

    Thread Starter neilgee

    (@neilgee)

    “PHP will throw notices all the time”

    PHP does indeed throw notices – but there is a reason for that and as the developer of the plugin you should really address these notices and code the plugin adjusting the code to be compliant with PHP.

    This error is creating a huge debug log file size as the notice is constantly logged numerous times.

    We have to maintain backward compatibility for all valid versions of PHP as well as different web server software, so the notices are unavoidable. If the site is otherwise working fine, you can turn the errors off following instructions such as these at WP Beginner: https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/

    Ask your webhost how to prevent logging useless PHP entries. Adding a line like “error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT” to the php.ini file (or creating a local php.ini file with that line) will reduce the entries in the log file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Errors in Pilotpress 2.0.3’ is closed to new replies.