If you rename the plugins folder googleanalytics
into something else, e.g. OLDgoogleanalytics
then refresh your website, the error is gone.
Now you can access your backend plugins page (optional: rename the folder OLDgoogleanalytics
back to googleanalytics
) and you can see that trying to enable the Google Analytics plugin gives the error you mentioned.
I temporarily fixed the error by commenting this piece of code.
if ( ! preg_match( '/\/' . GA_NAME . '\//', realpath( __FILE__ ), $test ) ) {
echo _( 'Invalid plugin installation directory. Please verify if the plugin\'s dir name is equal to "' . GA_NAME . '".' );
// To make able the message above to be displayed in the activation error notice.
die();
}
Related Posts:
- Disable plugin / plugin action via theme
- Activate a plugin through PHPMyAdmin or FTP?
- Add Google Analytics manually, or use a plug-in?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Google Analytics post views in WordPress? [closed]
- WordPress plugin installation error
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- Can’t access my WP dashboard: fatal error? [closed]
- Suspicious google tag manager
- Tracking Disqus comments on Google Analytics
- Using plugin functionality in external php script not working
- Multiple files in a plugin
- Can I delete plugin files using FTP?
- Can a plugin deactivate itself?
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- google conversion code
- Elementor\Scheme_Typography’ not found [closed]
- WordPress Blank Screen Issue [closed]
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Why “Call to a member function on a non-object” in plugin only?
- Fatal error can’t activate a plugin [closed]
- Cannot access my wp-admin after installing Gzip compression [closed]
- How to prevent PHP fatal error if plugin hasn’t been enabled and a method is called in theme file?
- How to install Google Analytics onto site without internet access
- Moving to a WordPress blog. What do I need to know?
- Fatal error on some pages after cancelling WPSTAGING cloning process
- There has been a critical error on your website – won’t fix no matter what
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Where does MonsterInsights put Google Analytics code?
- How to track analytics with a WordPress site under the same domain as my main site?
- WordPress gtag.js with User ID tracking
- Error with get_price (and others) in self-written plugin to show price
- After a manual update, themes and plugins that were installed (and still in the directory) are not being seen
- Google Analytics event tracking code being stripped out of links in Author box – WordPress site
- how does ‘init’ /’parse_request’ hook work for wordpress?
- Manualy Updated WordPress Error
- Replace old theme that understand old css (vcex_icon_box css_animation)
- How to set Google Analytics tracking code on WordPress plugin directory page?
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Different Google Analytics code based on Users Device
- Fatal error: Class ‘RDTheme’ not found
- Tracking sales/conversions in Woocommerce using Google Analytics
- Making a Custom Post Type Plugin – keep getting the white screen of death
- Google analytic issue in wordpress
- Call to a member function get_error_messages() on null [closed]
- Fatal error when accessing Pages in WP admin (and problems editing any pages)
- Plugin Breaking WordPress Login
- Fatal error with jigoshop and woocommerce
- Plugin won’t activate, fatal error (widget class not found)
- How to fix ‘Call to undefined function do_settings()’ error?
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Google analytics not working on WordPress
- White Screen When Includding A Folder With PHP Files
- FATAL ERROR: WP complains about redeclaration [closed]
- Unable to access WPadmin, website down
- WP Elementor Pro causing crtical failure on website
- fatal erro in one line if statment in wordpress plugin [Solved]
- Plugins menu not on dashboard
- How to fix Fatal error: Cannot redeclare get_cli_args() in class-wp-importer.php
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- force enqueue script to be first in order of prominence
- wp_mail and BCC headers
- Using require_once in a Plugin?
- How to call “page specific menu items” in template [closed]
- wp_enqueue_style in Plugin [duplicate]
- Is there an action that is called when a post is restored from the trash?
- Looking for a WordPress plugin to show five latest tweets one at a time? [closed]
- How to customize user search
- Upgrade Private Plugin without Deleting
- Making my plugin translation ready. Poedit not working
- Not able to open category post [closed]
- Open Post Thumbnail in New Child Theme File in WordPress
- Use wordpress functions in another PHP file
- custom user tables supported in SharDB plugin?
- Problem using Press-this book marklet
- How to make a implement queue for scheduling tasks in WordPress?
- WordPress does not show products when the value of post_parent is not 0
- Plugin Not Working After Being Uploaded To WordPress Plugin Repository
- Multisite – maximum number of users with specific role
- Generate Own Custom CSS Button with icon
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- How to get Recent Post From Each Category with Thumbnail?
- Multisite Change from domain.com to sub.newdomain.com
- “Welcome to WordPress” Plugin Required Error
- Profiling the initial PHP file, anyone, that get like 10 seconds to load
- How use wp_insert_post and add og:custom tags?
- Remove Keywords From Webpage But Still Use for SEO
- My WordPress activation hook isn’t working
- How to allow URL with filename & extension in wordpress?
- load plugin in code snippet
- When the user entered an unauthorized url redirect to login page
- how to create database to use it in wordpress website?
- Include paths and functions for external scripts
- Postal address auto-complete on profile page
- WordPress Plugin to Show a Website in Different Language? [closed]
- Check if plugin is being disabled
- How to change all the urls of the WordPress site?