• Resolved gatsman

    (@gatsman)


    Hello, i get a lot of Uncaught ReferenceError: wp is not defined errors in the console when i activate your plugin.
    Is this normal?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Fernando Tellado

    (@fernandot)

    Hi @gatsman

    No, it isn’t normal. I have the plugin active in a lot of sites without any issue

    May you give me some details about the site where it shows the error message, active plugins, theme, etc?

    Thread Starter gatsman

    (@gatsman)

    OK thanks
    I will check conflicts with plugins and theme and get back to you with more info.

    • This reply was modified 10 months, 2 weeks ago by gatsman.
    Plugin Author Fernando Tellado

    (@fernandot)

    Thank you, I’ll be waiting for your update ??

    Thread Starter gatsman

    (@gatsman)

    Well… Elementor is the plugin that causes the problem.
    Any advise that i could try? because i would like to use your plugin but the site is build with Elementor.

    Plugin Author Fernando Tellado

    (@fernandot)

    Hi @gastman

    I’ve activated in a test site with Elementor and nothing happened (see the capture when the plugin is active)

    May you give me some other details of your site? (plugins, hosting, theme, url, if you’ve purged the cache, anything that helps)

    Thread Starter gatsman

    (@gatsman)

    I created a demo site in a subdirectory with only Elementor & WPO and i again have the same errors.
    I have no cache and tested php 7.4 (running now) & php 8.2
    Could it be the LiteSpeed server?

    Plugin Author Fernando Tellado

    (@fernandot)

    Probably there’s a rule in your .htaccess, from LiteSpeed or other app, or any custom rule from the hosting, that don’t allow some of the rules from the plugin

    Thread Starter gatsman

    (@gatsman)

    Thank you, I will check more…

    • This reply was modified 10 months, 1 week ago by gatsman.
    Thread Starter gatsman

    (@gatsman)

    I got this in my .htaccess
    See anything wrong with it?

    # BEGIN LSCACHE
    # END LSCACHE
    # BEGIN NON_LSCACHE
    # END NON_LSCACHE
    
    # BEGIN WordPress
    # Οι ντιρεκτ?βε? (γραμμ??) αν?μεσα BEGIN WordPress καιEND WordPress ε?ναι
    # δυναμικ? δημιουργημ?νε?, και θα πρ?πει να τροποποιο?νται μ?νο με την χρ?ση φ?λτρων WordPress.
    # Οποιεσδ?ποτε αλλαγ?? στι? ντιρεκτ?βε? αν?μεσα στου? δε?κτε? θα επανεγραφε?.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    # BEGIN WordPress WPO Tweaks by Fernando Tellado
    # Οι ντιρεκτ?βε? (γραμμ??) αν?μεσα BEGIN WordPress WPO Tweaks by Fernando Tellado καιEND WordPress WPO Tweaks by Fernando Tellado ε?ναι
    # δυναμικ? δημιουργημ?νε?, και θα πρ?πει να τροποποιο?νται μ?νο με την χρ?ση φ?λτρων WordPress.
    # Οποιεσδ?ποτε αλλαγ?? στι? ντιρεκτ?βε? αν?μεσα στου? δε?κτε? θα επανεγραφε?.
    <IfModule mod_expires.c>
    # Activar caducidad de contenido
    ExpiresActive On
    # Directiva de caducidad por defecto
    ExpiresDefault "access plus 1 month"
    # Para el favicon
    ExpiresByType image/x-icon "access plus 1 year"
    # Imagenes
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    # CSS
    ExpiresByType text/css "access 1 month"
    # Javascript
    ExpiresByType application/javascript "access plus 1 year"
    </IfModule>
    <IfModule mod_deflate.c>
    # Activar compresión de contenidos estáticos
    AddOutputFilterByType DEFLATE text/plain text/html
    AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
    AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
    AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf
    AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf
    </IfModule>
    # END WordPress WPO Tweaks by Fernando Tellado
    
    AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml
    
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php74” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    Plugin Author Fernando Tellado

    (@fernandot)

    It looks like it your site have been hacked. There are a lot of greek characthers inside other code lines that surely aren’t good for the plugin (and other things) to work.

    My advice is to delete the actual .htaccess file, and let WordPress create a new and clean one via Settings > Permalinks > Save changes.

    After that, I think is more important to check your installation for malware or backdoors, clean the site and, after all, test my plugin and any other less important thing

    Thread Starter gatsman

    (@gatsman)

    ??
    Well i am Greek mate and the WordPress language is set to Greek.
    That’s just:
    The directives (lines) between “BEGIN WordPress” and “END WordPress” are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten.

    This is the .htaccess in English

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    # BEGIN WordPress WPO Tweaks by Fernando Tellado
    # The directives (lines) between "BEGIN WordPress WPO Tweaks by Fernando Tellado" and "END WordPress WPO Tweaks by Fernando Tellado" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_expires.c>
    # Activar caducidad de contenido
    ExpiresActive On
    # Directiva de caducidad por defecto
    ExpiresDefault "access plus 1 month"
    # Para el favicon
    ExpiresByType image/x-icon "access plus 1 year"
    # Imagenes
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    # CSS
    ExpiresByType text/css "access 1 month"
    # Javascript
    ExpiresByType application/javascript "access plus 1 year"
    </IfModule>
    <IfModule mod_deflate.c>
    # Activar compresión de contenidos estáticos
    AddOutputFilterByType DEFLATE text/plain text/html
    AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
    AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
    AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf
    AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf
    </IfModule>
    # END WordPress WPO Tweaks by Fernando Tellado
    • This reply was modified 10 months, 1 week ago by gatsman.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Uncaught ReferenceError: wp is not defined’ is closed to new replies.