0
I am working on a site where my client has purchased and installed Content Stats. When I enable the system/contentstats plugin and/or the contentstats/k2 plugin, any attempt at creating or editing Language Overrides via the Language Manager result in MySQL errors. When I disable the plugins, the Language Manager Overrides function normally.

My website is running:
Apache 2.2.24
PHP 5.3.25
MySQL 5.5.32-cll
Joomla 3.1.1
K2 2.6.6
Content Stats 1.6.0
Content Stats - K2 Component 1.4.1

Again, even with disabling the Contents Stats K2 Component and leaving the core Content Stats enabled, the problem happens.

The Language Overrides are used heavily on this site and cannot be bypassed.

Please advise.
Responses (3)
  • Accepted Answer

    Monday, August 05 2013, 07:32 PM - #Permalink
    0
    I was able to isolate the bug in the /plugins/system/contentstats.php file.

    The issue is that the plugin ASSUMES that all backend (admin) side activity is database driven when an $id or $cid is present. This is false. In some cases the backend $id/$cid entails writing to an *.ini file as is the case with the Language Manager Overrides.

    I modified the plugin file by adding an additional "IF" statement to lines 69-74, as follows:

    if($cid){ // existing module
    // modified by Rob Emenecker on 8/5/2013 to accomodate Language Manager > Overrides
    if($component != "com_languages" && $task != "override.edit") {
    $query = ' SELECT module FROM #__modules WHERE id = ' . $cid ;
    $db->setQuery($query);
    $module = $db->loadResult();
    }
    }


    You will want to update your plugin to bypass the database query in cases where there is NO DATABASE QUERY to execute. I've modified the plugin file on my site and have advised client to be mindful of possibly overriding my bug fix if they update the plugin.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 05 2013, 07:35 PM - #Permalink
    0
    hello

    what version of CS are you running?
    this issue was solved a while ago, so if you use the latest version you won't have this issue (the fix you made is good, anyway)

    also, please log in with the "verified" account (your clients), because "Rob Emenecker" is not a verified subscriber at the moment..

    thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 05 2013, 07:42 PM - #Permalink
    0
    Hi!

    Thanks for your reply.

    I've asked my client for their account information, and am waiting to hear back from them.

    The site is running CS version 1.6.0 along with CS K2 plugin version 1.4.1

    As far as I know, the client just purchased an Extended Professional subscription within the past month. However, having said that, I don't know how recent their set of extension files is.
    The reply is currently minimized Show
Your Reply