WPIntell

Source evidence

Uncaught ReferenceError: wp is not defined

DietPress · support · 2024-01-08T11:26:00+00:00

mixedsentiment
highseverity
0.95relevance
11replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 33 rows with source links

21.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
gatsman resolved
Hello, i get a lot of Uncaught ReferenceError: wp is not defined errors in the console when i activate your plugin. Is this normal? 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? OK thanks I will check conflicts with plugins and theme and get back to you with more info. This reply was modified 2 years, 4 months ago by gatsman . Thank you, I’ll be waiting for your update 😉 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. 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) 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? 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 Thank you, I will check more… This reply was modified 2 years, 4 months ago by 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 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 🙂 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 2 years, 4 months ago by gatsman .

Comments

11 shown
Fernando Tellado 2024-01-08T11:48:00+00:00

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?

gatsman 2024-01-08T16:56:00+00:00

OK thanks I will check conflicts with plugins and theme and get back to you with more info. This reply was modified 2 years, 4 months ago by gatsman .

Fernando Tellado 2024-01-08T17:46:00+00:00

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

gatsman 2024-01-16T08:17:00+00:00

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.

Fernando Tellado 2024-01-16T12:41:00+00:00

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)

gatsman 2024-01-16T17:58:00+00:00

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?

Fernando Tellado 2024-01-17T10:39:00+00:00

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

gatsman 2024-01-19T11:56:00+00:00

Thank you, I will check more… This reply was modified 2 years, 4 months ago by gatsman .

gatsman 2024-01-19T12:38:00+00:00

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

Fernando Tellado 2024-01-19T12:45:00+00:00

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

gatsman 2024-01-19T13:33:00+00:00

🙂 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 2 years, 4 months ago by gatsman .