Support » Plugin: Autoptimize » Can’t work on my website anymore using the backend

  • Resolved ddayoverlordwebmaster

    (@ddayoverlordwebmaster)



    Hi all.

    I have been using the autoptimize-beta Version 2.4.0-beta-3 version.

    Some examples of what I can not do anymore:
    – save the widgets shifting (Widget Logic plugin ): I can shift them, but my changes are no more saved, automatically or manually;
    – upload images (images of all sizes download well, but the action ends with an “HTTP Error”);
    – access my image library (the loading icon of the library runs forever in an infinite loading loop);
    – search for new plugins from the classic interface of the back-end: once again, the loading icon runs forever in an infinite loading loop);
    – delete disabled plugins (error message: “Failed to delete: 0”);
    – make modifications with the WPBakery plugin (page editor): the text / images / etc block windows open well but do not display the contents anymore.

    Here is the content of my error log:

    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 98
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
    [22-Jul-2018 17:08:37 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 483
    [22-Jul-2018 17:08:41 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/****/www/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/post-edit-screen/wpml-meta-boxes-post-edit-html.class.php on line 149
    [22-Jul-2018 17:08:41 UTC] PHP Notice: Trying to get property ‘term_id’ of non-object in /home/****/www/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/post-edit-screen/wpml-meta-boxes-post-edit-html.class.php on line 152
    [22-Jul-2018 17:08:41 UTC] PHP Notice: Trying to get property ‘name’ of non-object in /home/****/www/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/post-edit-screen/wpml-meta-boxes-post-edit-html.class.php on line 152
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 98
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
    [22-Jul-2018 17:08:58 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 483
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 98
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
    [22-Jul-2018 17:09:01 UTC] PHP Deprecated: Function create_function() is deprecated in /home/****/www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 483

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    weird ddayoverlordwebmaster.

    some feedback:
    * the create_function notices are of AO 2.3.x, there is no create_function in AO 2.4 any more
    * the notices are actually a mere warning of PHP 7.2 that create_function will not work in a future version, but this still works as expected now (multiple people posted about the notices on this support forum before, confirming all works).
    * AO does not do optimization on the backend and is not active except in the toolbar (the menu) and on its own settings-page
    * no idea about the sitepress-multilingual-cms notices in there, but I think this is unlikely to be the root cause

    and some questions:
    * how long have you been using AO (2.3/ 2.4)?
    * when have these issues started?
    * what did you do before the problems started?
    * what JS errors do you see on the browser console (because most if on all of what you mention is JS-/ Ajax-based)?
    * does disabling AO fix the issues?

    frank

    ddayoverlordwebmaster

    (@ddayoverlordwebmaster)

    Thanks for the reply.

    * I am using AO for about 2 to 3 weeks now. I have tested the 3 previous versions of AO, but the error log remains the same.
    * These issues have started about 2 weeks ago.
    * Unfortunately, I can’t say what caused the issues, nor what I did before it started. I have tried with default WP theme and with disabling the different plugins one after the other, nothing helps.
    * These are the only errors I see on this error log.
    * Disabling AO did not help.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    These are the only errors I see on this error log.

    OK, but can you open your browser console while doing stuff in the backend (and trying the broken things) and look for JavaScript errors there?

    ddayoverlordwebmaster

    (@ddayoverlordwebmaster)

    Here is what Firefox Error Console sees:

    Bootstrapped manifest not allowed to use ‘resource’ directive. chrome.manifest:1
    Bootstrapped manifest not allowed to use ‘resource’ directive. chrome.manifest:7
    Bootstrapped manifest not allowed to use ‘resource’ directive. chrome.manifest:2
    1532290381668 addons.webextension.jid1-NIfFY2CA8fy1tg@jetpack WARN Please specify whether you want browser_style or not in your browser_action options.
    [Show/hide message details.] getSettings(…) is undefined background.js:1011
    Key event not available on some keyboard layouts: key=“i” modifiers=“accel,alt,shift” id=“key_browserToolbox” browser.xul
    TypeError: window is null
    WebRequestContent.js:124:7

    Do you need me to develop some of these lines?

    ddayoverlordwebmaster

    (@ddayoverlordwebmaster)

    I guess it is better if I develop before you ask:

    – Bootstrapped manifest not allowed to use ‘resource’ directive. chrome.manifest:1

    – Bootstrapped manifest not allowed to use ‘resource’ directive. chrome.manifest:7

    – Bootstrapped manifest not allowed to use ‘resource’ directive. chrome.manifest:2

    – 1532290381668 addons.webextension.jid1-NIfFY2CA8fy1tg@jetpack WARN Please specify whether you want browser_style or not in your browser_action options.

    [message details.] – getSettings(…) is undefined background.js:1011
    processTab
    moz-extension://05d8bd94-0aca-435d-b7d8-0bcd35b104ec/background.js:1011:22
    getCurrentTabInfo/<
    moz-extension://05d8bd94-0aca-435d-b7d8-0bcd35b104ec/background.js:1058:7
    apply self-hosted:4549:5 applySafeWithoutClone
    resource://gre/modules/ExtensionCommon.jsm:234:16
    wrapPromise/<
    resource://gre/modules/ExtensionCommon.jsm:431:13

    – Key event not available on some keyboard layouts: key=“i” modifiers=“accel,alt,shift” id=“key_browserToolbox” browser.xul

    – TypeError: window is null

    – WebRequestContent.js:124:7
    – 1532290772932 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290772974 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290772978 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290773117 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290773130 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290773151 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290773170 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241

    – 1532290773183 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception… “Update manifest is missing a required addons property.” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 120” data: no] Stack trace: getRequiredProperty()@resource://gre/modules/addons/AddonUpdateChecker.jsm:120
    parseJSONManifest()@resource://gre/modules/addons/AddonUpdateChecker.jsm:130
    onLoad()@resource://gre/modules/addons/AddonUpdateChecker.jsm:309
    UpdateParser/<()@resource://gre/modules/addons/AddonUpdateChecker.jsm:241
    Security Error: Content at moz-nullprincipal:{11f53ab1-3761-456d-be6a-914fb2f51595} may not load data from moz-extension://05d8bd94-0aca-435d-b7d8-0bcd35b104ec/background.js.

    – NS_ERROR_DOM_BAD_URI: Component returned failure code: 0x805303f4 [nsIWebNavigation.loadURI]

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    morning ddayoverlordwebmaster;
    A lot of the errors in there are from your browser’s extensions/ plugins, but

    TypeError: window is null

    could be our culprit.

    I think the next step is to enable script-debugging as per step 2 of “Diagnosing JS errors in the browser” (maybe also try step 1 “try in another browser” to see if that learns us something).

    frank

    ddayoverlordwebmaster

    (@ddayoverlordwebmaster)

    “Diagnosing JS errors in the browser” corresponds to the instructions I followed to share the JS diagnostic.
    Content and errors are not different in other browsers.

    Plugin Author Frank Goossens

    (@futtta)

    OK, but did you “enable script-debug” by adding

    define('SCRIPT_DEBUG', true);

    to your wp-config.php?

    ddayoverlordwebmaster

    (@ddayoverlordwebmaster)

    Yes

    Plugin Author Frank Goossens

    (@futtta)

    OK, so:
    * is there any difference in the browser console output with and without script_debug on?
    * can you drill down on the TypeError: window is null, does this (with and without script_debug) point to a specific file or line?

    (to be clear; we’re not in autoptimize-support land any more, but hope to be able to help you or at least point you into a more specific direction)

    Plugin Author Frank Goossens

    (@futtta)

    Closing here as resolved because not AO-related (‘Disabling AO did not help’).

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.