• Resolved crezzysue

    (@crezzysue)


    After updating to WP v4.73, there was an error with Ontrapages plugin:
    array() expects parameter 1 to be a valid callback, class 'ONTRApages' not found in /wp-includes/class-wp-hook.php on line 298

    I uninstalled and deleted the plugin, and then reinstalled, but I get this message:
    Installation failed: The package could not be installed.

    So I tried to download the plugin, unzip it and place the unzipped plugin folder in the plugins folder of my site but get a message:
    The plugin ontrapages/ontrapages.php has been deactivated due to an error: The plugin does not have a valid header.

    Can you please advice on how to fix? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Non-fatal PHP warnings should be turned off on all production sites, so you should not have seen that warning; PHP warns about a lot of things, but having the warnings pop up on a production site is definitely counter-productive. It led you to do a lot of work that was unnecessary.

    You can contact your host to see if they can turn them off, or edit your wp-config.php file to suppress them as explained in this article or ones similar to that.

    To get back to where you can install the ONTRApages plugin again you may have to delete the “/wp-content/plugins/ontrapages” folder completely via a File Manager from your control panel or via FTP. After deletion, go into WordPress and ensure the plugin is no longer listed.

    If you are an ONTRAPORT customer you can get specific assistance by chatting help from within ONTRAPORT (click the question mark icon on the right and select Chat). If you are an ONTRApages Premium customer you can contact us via our Facebook Support Group at https://www.facebook.com/groups/ONTRApagesusercommunity/ I can create a ticket for you from there and we can take a closer look.

    The ONTRApages Plugin will only work with those two programs, but it sounds like you had it working previously!

    Thread Starter crezzysue

    (@crezzysue)

    Hi @ontraportfrank,

    This was actually a local build of a client’s site. I setup a dev site on the same server as the production site and updated all plugins and then the WP core and all is fine and working as expected. Must be something with my local setup. I will investigate. Thank you for your notes about the wp-config file and the non-fatal PHP warnings. Thank you again for your time!

    You can turn off the display of errors in php.ini on your development platform, although a lot of developers writing and testing code will want it on.

    In your case, where you are developing a WP site and testing integrations, I would turn off the display of errors in WordPress, but leave them on for the rest of your development platform. Near the bottom of this section of the Editing wp-config.php article is this:

    For your public, production WordPress installation, you might consider placing the following in your wp-config.php file:

    @ini_set( ‘log_errors’, ‘On’ ); /* Ideally, this should be set in php.ini, if you have access */
    define( ‘WP_DEBUG’, false );
    define( ‘WP_DEBUG_LOG’, false );
    define( ‘WP_DEBUG_DISPLAY’, false );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Package Cannot Be Installed / Invalid Header’ is closed to new replies.