• I updated plugin in working condition. after update its showing me following error on settings page. i reset and removed plugin then re installed it but no luck its same

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /serverpath/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 40

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /serverpath/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 103

    Fatal error: Class name must be a valid object or a string in /serverpath/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 104

    https://www.ads-software.com/plugins/google-analyticator/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi,

    Can you possible contact us here, we have a few questions for you:

    https://videousermanuals.desk.com/

    Thanks

    Same problem. Caused at least 3 different sites to break the widgets control panel. None of the widgets used on the site were visible. Deactivated the Analyticator plugin and it fixed the problem. Can you tell me that if I remove your plugin, will it affect my google analytics or does the GA code simply remain their? Thank you, Kevin

    This rapidly has become a headache. Need to know if I can delete this plugin without it disrupting our Google analytics tracking. Does deleltion of the plugin remove and deactivate analytics??

    Here’s the error on at least 3 different sites:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr/home/fldrn/public_html/donorrecovery.org/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 40

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr/home/fldrn/public_html/donorrecovery.org/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 103

    Fatal error: Class name must be a valid object or a string in /usr/home/fldrn/public_html/donorrecovery.org/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 104

    Hi,

    Can you let us know which version of php you are running please.

    If you deactivate the plugin, the tracking will stop.

    Thanks

    Checking on this with my developer.

    Sites are hosted on Pair Networks – PHP version 5.3.18

    Here’s a note from my developer:

    In Google_Client.php on line 35 they have this: require_once “config.php”; That plain, no path attached, include means that PHP is likely to consider ANY included config.php in its adventure to get to this plugin to be that file.

    So if another plugin has a file called “config.php” which was included, PHP will consider it already present. And their variable which is throwing the error will not be present.

    I bet you can find, if you want, the other plugin which conflicts with this, and will discover a file in it called “config.php”. In any case, the way they include the next file in line, local_config.php, is right. And had they set the variable before including it to be an empty container, this error wouldn’t happen, either.

    We’ve fixed things on our end on 4 sites where the problem was appearing. This from our developer:

    I made that change, plugin seems to be working.
    Akismet has a file within its plugin called “config.php”. Since akismet is loaded before the google thingy, I bet that is what was throwing it.
    line 35 of “Google_Client.php” now reads
    require_once (dirname(__FILE__) . “/config.php”);
    That was the only change I made.

    I also have the same problem with this plugin, however it is causing my Widgets sidbars to not show in my Widgets area for this theme (Newspaper 4), plus it apparently conflicts with the menu of WordPress itself. When you roll over a menu item, (such as “Settings”) you don’t see the subsequent right side sub-menu.

    Turning off the plugin fixes the problem, but now I’ve lost my tracking! Uggh!

    I’m going to try the above trick to see if that will fix my errors as it did for ktsparkman. Will advise.

    Kevin, your developer is AWESOME!

    That fix totally fixed the problem with Widget menus not showing. By the way, it also fixed a problem with WordPress menu system itself where the sub-menu pull out menu wouldn’t show when you did a rollover over a main menu item.

    For those of you that have the same issue, here’s the fix Kevin’s developer did, with the old and new code…

    FILE – google-analyticator > google-api-php-client > src > Google_Client.php

    OLD CODE (starting at Line 35)

    require_once "config.php";
    // If a local configuration file is found, merge it's values with the default configuration
    if (file_exists(dirname(__FILE__)  . '/local_config.php')) {
      $defaultConfig = $apiConfig;
      require_once (dirname(__FILE__)  . '/local_config.php');
      $apiConfig = array_merge($defaultConfig, $apiConfig);

    NEW CODE (starting at Line 35)

    require_once (dirname(__FILE__) . "/config.php");
    // If a local configuration file is found, merge it's values with the default configuration
    if (file_exists(dirname(__FILE__)  . '/local_config.php')) {
      $defaultConfig = $apiConfig;
      require_once (dirname(__FILE__)  . '/local_config.php');
      $apiConfig = array_merge($defaultConfig, $apiConfig);

    Adding to line 35…

    require_once (dirname(__FILE__) . "/config.php");

    in place of…

    require_once "config.php";

    seems to have fixed the problem.

    Thank you Kevin and Kevin’s developer!

    Thanks. Roger Los is the developer who came up with the solution. Hopefully the Author will integrate the appropriate changes in the next update. Kevin

    Got a very similar (possibly related problem in the settings page….
    After Authentication the select of the user account is empty.
    Looking at the source code reveals that the settings page has an error:

    <select name="ga_uid">
    Warning:  Invalid argument supplied for foreach() in /homepages/../...../..../..../.../wp-content/plugins/google-analyticator/google-analyticator.php on line 536
    </select>

    I’ve replaced the absolute path names just for security’s sake ??

    In this case it’s not Askimet or Widgets.
    I’ve found that if the wpmudev Google+ plugin is disabled then things work normally:
    https://premium.wpmudev.org/project/google-1/

    So it seems this Google Analyticator conflicts with various different plugins – is there a workaround please?

    Thank you

    Hi,

    We will, thanks for this. We will add it the beta version and the couple of other small fixes. Then release it.

    Thanks for all your help guys.

    At the bottom of this message is the error I receive since installing Google+ Plug-in, when clicking on “Appearance>Customize”
    I am unable to view my widget settings anymore (drop and drag view).
    I tried finding the code to change (mentioned by KTSParkman and CTomlin above) but couldn’t find the files in my Google Analyticator.
    Thanks for your help.

    Begin error message:

    Edit Add Google Analytics Stats
    Google Analytics Stats

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/content/s/t/e/stereovega/html/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 40

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/content/s/t/e/stereovega/html/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 103

    Fatal error: Class name must be a valid object or a string in /home/content/s/t/e/stereovega/html/wp-content/plugins/google-analyticator/google-api-php-client/src/Google_Client.php on line 104

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘recent update throws error in settings page’ is closed to new replies.