Support » Plugin: SG Optimizer » Error messages when activating the plugin

  • Resolved biberkopf

    (@biberkopf)


    Hi SG guys:

    When I activate your plugin, I get these three notices and warning. They disappear, when I disable the plugin:

    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/jonas345/public_html/wp-includes/functions.php on line 4136

    Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/jonas345/public_html/wp-includes/functions.php on line 4136

    Warning: Cannot modify header information – headers already sent by (output started at /home/jonas345/public_html/wp-includes/functions.php:4136) in /home/jonas345/public_html/wp-content/plugins/sg-cachepress/class-sg-cachepress.php on line 339

    It seems to only happen in the plugin list view.

    The notices/warnings may be related to this alertbox:

    “SG CachePress: Your site https://jonas.dk is not cached! Make sure the Dynamic Cache is enabled in the SuperCacher tool in cPanel. Click here to hide this notice.”

    It appears when even though the Dynamic Cache button is in fact active. But it seems to only appears after I reload the plugin-list page with the first mentioned warnings (which then on their part disappear).

    It’s not a big thing, but a bit messy. So if it’s a bug in your plugin, it would be great if you could kill it in your next update. 😉

    Otherwise, I’m really, really happy with your service and this plugin.

    Oh, and here’s a list of all the active plugins:

    Admin Bar Toggle, Admin Columns, Comet Cache, Contact Form 7 Honeypot, Contact Form 7, Disable Emojis, Display Posts Shortcode, Duplicate Post, Google Tag Manager for WordPress, Font Awesome 4 Menus, Genesis Shortcodes, Genesis Simple Edits, Genesis Simple Hooks, Genesis Simple Sidebars, Genesis Style Trump, Genesis Visual Hook Guide, Jetpack by WordPress.com, Post Type Switcher, Postman SMTP, Quick Page/Post Redirect Plugin, Regenerate Thumbnails, SG CachePress, Shortcake (Shortcode UI), Show Dimensions in Library, Simple Image Sizes, SiteOrigin CSS, Yoast SEO, Zendesk Chat Widget

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hristo Pandjarov

    (@hristo-sg)

    Please, update to 3.0.3 and let me know if any of the issues persists 🙂

    Hello, I have a similar problem with SG Optimizer 3.3.1 on WordPress 4.7.4: it is reporting that my home page is not cached.

    A little bit more info that could help:
    – at one moment I have added the home page to the cache exceptions, but then I took it out and now there are no excluded URLs in that box in SuperCacher Config.
    – my site is hosted on siteground.com and SG Optimizer was offered by the hosting as default
    – it seems that I have a general problem with the cache as another similar thing is happening: wordpress reports that there is a not updated plugin: i see the orange bubble both in the plugins menu and in the update menu but when I enter each of them I could not find any plugin to be updated.
    – disabling all the other plugins, even deleting and reinstalling SG Optimizer is not changing this
    – reinstalling the SG Optimizer brings back immediately after the installation the homepage in the exclude list
    – purge the cache is not helping with this problem

    All this info are leading me to think there is a problem with the cache. Could you please support me?

    Thanks!

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    Please, open a ticket in your Help Desk, that looks like an issue specific to your site and I am sure my colleagues from the support team will assist you!

    ok! Thanks! will do that!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error messages when activating the plugin’ is closed to new replies.