• Hi,
    I just installed Autoptimized today, to test it. I am using X theme. I am heavy on using X-theme’s Cornerstone plugin and Thriveleads plugins. None of these are working after I installed Autoptimizer. I cannot edit a page in Cornerstone, or I cannot edit a Thrivelead form. When I click on either one of these options, the page reloads with the homepage. I tried almost everything that I read, options, settings, etc, but still doesn’t work. I tried deleting plugins, including Autoptimizer and other plugins, still won’t work. Now I feel like I have to delete the entire site and re-do it from scratch.
    Please let me know what I should do.

    Thank you!

    https://www.ads-software.com/plugins/autoptimize/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Goossens

    (@futtta)

    ouch jm2016, that sounds bad …

    what you should know regarding autopitimize;
    1. it aggregates & minifies the JS & CSS from the frontend (so now /wp-admin)
    2. it doesn’t touch the original JS & CSS, but removes references to it from the HTML on the fly
    3. if you disable autoptimize all should go back to how it was before (you might have to purge your page cache)

    now some questions;
    * given (1), I assume Cornerstone & Thrivelead are active on the front-end, for you as an admin and that is that what broke?
    * did you try simply disabling JS optimization? what errors did you have on your browser’s error console?
    * after disabling (removing) AO, did you purge your page cache as per (3)?

    I’ll be happy to take a look at your site, if you provide me with the URL. Maybe I can see what is going on (and if AO is still active somehow)?

    frank

    Thread Starter jm2016

    (@jm2016)

    Hello Mr. Frank,

    Thank you for your response!

    I have tried several times to disable, and clear the cache etc, but still those plugins will not work.

    1. Yes sir, they are active on front-end. Those two plugins won’t work. I tried to contact the staff on Themeco – X-Theme, they said this:

    “Hello There,

    Cornerstone doesn’t play along with Autoptimize script. The Cornerstone builder takes place on the front end, most of the times Autoptimize tries to cache its resources. This can cause stale data to be loaded. To resolve this, you’ll need to exclude the css and js files of Cornerstone.

    Both CSS and JS optimization can skip code from being aggregated and minimized by adding “identifiers” to the comma-seperated exclusion list. The exact identifier string to use can be determined this way:

    – If you want to exclude a specific file, e.g. wp-content/plugins/cornerstone/assets/css/style.css, you could simply exclude “cornerstone/assets/css/style.css”
    – If you want to exclude all files of a specific plugin, e.g. wp-content/plugins/cornerstone/assets/js/dist/site/*, you can exclude for example “cornerstone/assets/js/dist/site/” or “plugins/cornerstone”

    Hope this helps.”

    Well, I did this, but still did not work.

    2. I tried disabling JS, but I did not check the console.
    3. I did not purge, i am not sure how to do this. ??

    Yes sir, please please take a look at this: https://joelmadasu.com

    Thank you!

    Plugin Author Frank Goossens

    (@futtta)

    OK, what we can do is disable Autoptimize for logged in users with a couple of lines of code. Install the code snippets plugin and use that to add this snippet (Save & activate with “Only run on site front-end” checked);

    add_filter('autoptimize_filter_noptimize','loggedon_noptimize',10,0);
    function loggedon_noptimize() {
    	if (is_user_logged_in()) {
    		return true;
    	} else {
    		return false;
    	}
    }

    Can you try that?

    frank

    Thread Starter jm2016

    (@jm2016)

    Hi,

    I installed the plugin, and also added the code you provided. The problem still remains the same. When I click on Thriveleads, or Cornerstone to edit, the page refreshes and loads the home page. I also tried disabling all the plugins and tried to edit with these two plugins, the page still refreshes and loads the home page.

    Please let me know what to do.

    Thank you!
    Joel

    Plugin Author Frank Goossens

    (@futtta)

    Sounds like this isn’t autoptimize-related then, but hard to confirm as I can’t see what’s going on, as this only occurs for you, as a logged on admin Joel … What do you see in your browser’s error console?

    frank

    Thread Starter jm2016

    (@jm2016)

    Hi,

    There are no errors showing. What I did was, accessed the .htaccess and deleted this code:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{QUERY_STRING} !=””
    RewriteCond %{QUERY_STRING} !^s=.*
    RewriteCond %{QUERY_STRING} !^cx=.*
    RewriteCond %{REQUEST_URI} !^/wp-admin.*
    RewriteRule ^(.*)$ /$1? [R=301,L]
    </IfModule>

    That is it. It started to work normal! I am not sure what this is and how it came there. And I am not sure if I NEED to leave this in the .htaccess file. Do I? Please let me know!

    Plugin Author Frank Goossens

    (@futtta)

    Is that in the .htaccess in the root wordpress-folder? Because there one normally has just these;

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    # END WordPress

    No idea which plugin added the rules you have (or rather, had) there I’m afraid, so can’t answer if you need those.

    frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Autoptimized conflicts with other plugins’ is closed to new replies.