Taylor Spencer
Forum Replies Created
-
I found out the cause of my problem. Apparently Autoptimize was attempting to minimize a JavaScript file that was being inserted at the theme level,
jquery.expend2.js
. As the name implies, it’s a JQuery file, which Autoptimize already has rules for excluding, but the built-in rules did not cover this one. I added it to the exclude list and the FAQ page began displaying normally, header, closing</head>
, opening<body>
tags and all. I would like to thank @optimizingmatters for the help you gave dealing with this matter.This appears to be an interaction between Autoptimize and our custom theme, which is a significantly modified child theme of Twenty Fifteen, as I, using Health Check’s Troubleshooting Mode, could see this as soon as I had switched back to our custom theme and reenabled only Autoptimize. That said, this does not show up in the parent theme, Twenty Fifteen, so I’m not sure there’s a lot more you could do to help me here. With that in mind, I plan to spend the next couple of hours debugging this custom theme to see where’s its going wrong. I would like to thank you @optimizingmatters for the time spent trying to help debug this, but this looks like a problem on our end.
This may occur on other pages, but so far I’ve only seen it on the FAQ page for this site. The problem does remain when HTML and CSS optimization is off, but goes away immediately when JavaScript optimization is turned off. The FAQ page has a special template of [FAQ] and is generated using the plugin Toolset, however, deactivating this plugin did not cause the header to reappear. I did see some related errors in my error log, but I suspect some of these are from trying to install the beta on a site that already had the stable version of Autoptimize installed. The contents of my PHP error log are below:
[Mon Jun 11 15:55:43.235531 2018] [:error] [pid 13135] [client 97.93.250.28:33342] PHP Fatal error: Cannot redeclare autoptimize_load_plugin_textdomain() (previously declared in /nas/content/live/cdagno/wp-content/plugins/autoptimize/autoptimize.php:81) in /nas/content/live/cdagno/wp-content/plugins/autoptimize-2.3.3/autoptimize.php on line 82, referer: https://www.collaborativedivorceneworleans.com/wp-admin/update.php?action=upload-plugin [Mon Jun 11 15:55:50.725291 2018] [:error] [pid 12038] [client 97.93.250.28:33590] PHP Fatal error: Cannot redeclare autoptimize_load_plugin_textdomain() (previously declared in /nas/content/live/cdagno/wp-content/plugins/autoptimize/autoptimize.php:81) in /nas/content/live/cdagno/wp-content/plugins/autoptimize-2.3.3/autoptimize.php on line 82, referer: https://www.collaborativedivorceneworleans.com/wp-admin/plugins.php?error=true&plugin=autoptimize-2.3.3%2Fautoptimize.php&_error_nonce=ce3a506456 [Mon Jun 11 15:55:55.793117 2018] [:error] [pid 12109] [client 97.93.250.28:33789] PHP Fatal error: Cannot redeclare autoptimize_load_plugin_textdomain() (previously declared in /nas/content/live/cdagno/wp-content/plugins/autoptimize/autoptimize.php:81) in /nas/content/live/cdagno/wp-content/plugins/autoptimize-2.3.3/autoptimize.php on line 82, referer: https://www.collaborativedivorceneworleans.com/wp-admin/plugins.php?error=true&plugin=autoptimize-2.3.3%2Fautoptimize.php&_error_nonce=ce3a506456 [Mon Jun 11 16:07:44.211645 2018] [:error] [pid 15430] [client 97.93.250.28:50716] PHP Warning: require(/nas/content/live/cdagno/wp-content/plugins/autoptimize/classes/external/php/plugin-update-checker/plugin-update-checker.php): failed to open stream: No such file or directory in /nas/content/live/cdagno/wp-content/plugins/autoptimize-beta/autoptimize.php on line 31, referer: https://www.collaborativedivorceneworleans.com/wp-admin/plugins.php?plugin_status=all&paged=1&s [Mon Jun 11 16:07:44.211741 2018] [:error] [pid 15430] [client 97.93.250.28:50716] PHP Fatal error: require(): Failed opening required '/nas/content/live/cdagno/wp-content/plugins/autoptimize/classes/external/php/plugin-update-checker/plugin-update-checker.php' (include_path='.:/usr/share/pear/php:/usr/share/php:/usr/share/pear') in /nas/content/live/cdagno/wp-content/plugins/autoptimize-beta/autoptimize.php on line 31, referer: https://www.collaborativedivorceneworleans.com/wp-admin/plugins.php?plugin_status=all&paged=1&s