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
- No Google Analytics code rendered in the header?
- Learnpress FATAL ERROR
- Fatal Error in my WP “Call to undefined function get_option()”
- Fatal error..can’t sign into my WP site to try and deactivate naughty plugins. Help!
- How to translate WP Blog (search, category etc.)?
- WordPress SVN UTF-8 issue
- How can I concatenate variables to search results title? [closed]
- Migrating WordPress – New domain entry, links broken
- Search Results Page filter by page title
- Activate and deactivate plugin automatically
- WooCommerce: after install hook
- Test my WordPress Plugin standard or not
- Theme My Login Shortcode Doesn’t Return Anything
- How retreive saved data from gravity forms in my template?
- is_rtl returns false while it should return true
- issue in wp_localize_script
- Import MS-Access data file to make the searchable page
- License validate function
- Sanitize $_GET variable when comparing
- Include Minit plugin in theme [closed]
- Plugin for an interactive image? [closed]
- Where can I save plugin data?
- echo get_option in header template
- How to display all functions (hooks, filters, or custom php) used on a page inline
- wp_enqueue_style on template_redirect level?
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Clear out old images, any advice?
- problem with sql query
- Access post title from custom meta box on title change
- How to add a new column with text fields to WooCommerce Cart List?
- How to use filter to disable adding a product to wishlist?
- Running multiple security plugins
- Save user total active time after login in wordpress [closed]
- add_query_arg not work in admin
- Add a “View all” button on WooCommerce product archives pages
- Opening a JQuery modal window on click of a button with a JQuery plugin
- I am trying to make a field show and save from quickedit screen
- Merge tags in multistep Gravity Form?
- Add to array, redirect and display