WordPress.org

Ready to get started?Download WordPress

Forums

WP SlimStat
[resolved] problem after update to slimstat 2.8 (42 posts)

  1. Yannis2810
    Member
    Posted 2 years ago #

    Hi,
    I have just upgraded to the latest SlimStat, but now I get this error:
    Call to undefined function wp_get_current_user() in /home/anekdota/public_html/wp-includes/capabilities.php on line 1187

    I could not do anything as an Admin, so I had to rename the slimstat folder in order to disable it.

    What should I do?

    Yannis

    http://wordpress.org/extend/plugins/wp-slimstat/

  2. ronthai
    Member
    Posted 2 years ago #

    I got the same problem.

    I know 100% sure it is caused by SlimStat, because when I FTP to my WP folder/plugins and rename wp-slimstat folder the problem is gone.

    So for now emergency to get back to the admin and your members can login, just rename the wp-slimstat folder in the wp-includes/plugins folder.
    This just means that you will not have the Slimstats plugin, but your blog will be 100% functional

    Guess Dino/Camu has some work ahead

  3. camu
    Member
    Plugin Author

    Posted 2 years ago #

    What version of WordPress are you guys using?

  4. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Can you try to edit wp-slimstat-dashboard.php, look for 'plugins-loaded' (at the very end of the file) and replace it with 'init'? Then reactivate your plugins and see what happens. The bug, by the way, is caused by the Dashboard Widgets plugin, not Wp SlimStat. You should be able to activate the latter without any problems.

    Camu

  5. ronthai
    Member
    Posted 2 years ago #

    Hi Camu,

    The change to init did not work, same problem.
    I use the lastest WP 3.3.1
    and I do nothing with the widget dashboard plugin, unless it is activated automaticcally together with Slimstat. But I do not use that option from the dashboard

  6. camu
    Member
    Plugin Author

    Posted 2 years ago #

    That's weird. By the time 'init' is called, according to the official WordPress documentation, the user should have been initialized, and that error should not occur anymore. It's also weird that it occurs with WP SlimStat, whose function that calls current_user_can, is initialized way after the user has been set.

    Would it be possible for me to take a look at the issue (admin access)? I'm not able to replicate it on my test environment, so I suspect it could be because of a conflict with some other plugin, that is delaying the initialization of the user.

    Contact me at

    http://www.duechiacchiere.it/contatto

    Thanks,
    Camu

  7. lelebart
    Member
    Posted 2 years ago #

    Happened to me too, I don't know if this link could help: http://www.powers1.net/call-undefined-function-wpgetcurrentuser.
    Btw, the running plugins:

    • Add From Server: 3.2.0.2
    • Add Logo to Admin: 1.5
    • Adminimize: 1.7.26
    • Akismet: 2.5.5
    • All in One SEO Pack: 1.6.13.8
    • Auto Thickbox: 2.0.3
    • AVH First Defense Against Spam: 3.3.1
    • Bad Behavior: 2.2.2
    • Breadcrumb NavXT: 4.0.2
    • Contact Form 7: 3.1.1
    • Contact Form 7 reCAPTCHA extension: 0.0.12
    • Google Maps v3 Shortcode: 1.2.1
    • Google XML Sitemaps: 3.2.6
    • iframe: 2.2
    • Issuu Embed: 1.0
    • List Pages Shortcode: 1.3
    • Maintenance Mode: 5.4
    • MediaElement.js - HTML5 Audio and Video: 2.7.0
    • NextGEN Gallery: 1.9.3
    • PS Auto Sitemap: 1.1.5
    • Really Simple CAPTCHA: 1.5
    • Redirection: 2.2.10
    • RSS Importer: 0.2
    • SABRE: 1.2.0
    • Sidebar Login: 2.3.4
    • Simple Tags: 2.2
    • SoundCloud Shortcode: 2.0
    • TinyMCE Advanced: 3.4.5.1
    • User Role Editor: 3.5.3
    • WordPress Database Backup: 2.2.3
    • WordPress Download Monitor: 3.3.5.4
    • WordPress Firewall 2: 1.3
    • WordPress Importer: 0.5.2
    • WordPress Video Plugin: 0.756
    • WP-Piwik: 0.9.1
    • WP-reCAPTCHA: 3.1.6
    • WP Minify: 1.1.8
    • WP OpenSearch: 1.0
    • WP Security Scan: 3.0.9
    • WP SlimStat: 2.8 (**disabled**)
    • WP SlimStat Dashboard Widgets: 2.8 (**disabled**)
    • WP Super Cache: 1.0
  8. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Lelebert,

    not sure which one could be causing the problem (it may not even be a conflict). What is weird is that my test environment is based on a standard WordPress 3.3.1 installation, with no other plugins, and I don't get the error message.

    Were you using WP SlimStat Dashboard?

    Thanks,
    Camu

  9. lelebart
    Member
    Posted 2 years ago #

    Hi Camu!

    No, I wasn't using any dashboard report at all.

  10. Yannis2810
    Member
    Posted 2 years ago #

    Hi,
    I am using WordPress 3.3.1 with theme WooCanvas.
    I disabled all plugins and tried to re-activate Slim Stats but I got the same error again.
    Finally, I uninstalled Slim Stats because there was nothing else to try.

    Yannis

  11. ronthai
    Member
    Posted 2 years ago #

    If I look at lelebert's plugin list, we share 3 plugins in common.

    Akismet: 2.5.5
    All in One SEO Pack: 1.6.13.8
    Sidebar Login: 2.2.15

    WP SlimStat: 2.8 (**disabled**)
    WP SlimStat Dashboard Widgets: 2.8 (**disabled**)

  12. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Okay, I was finally able to reproduce the issue. It occurs if you have restricted access to the admin panels to some specific users. I'm working on it ;) Thank you for pointing this out. A fix will be available asap.

    Camu

  13. camu
    Member
    Plugin Author

    Posted 2 years ago #

    I'm happy to report that the bug has been fixed. If you guys want to test the new version and see if it solves the problem, contact me at

    http://www.duechiacchiere.it/contatto

    and I'll send you the file.

    Cheers,
    Camu

  14. ronthai
    Member
    Posted 2 years ago #

    OK, sent you an email

  15. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Sent you the new files, let us know ;)

  16. ronthai
    Member
    Posted 2 years ago #

    OK, people I tested the new files Camu sent me and it looks like the problem is solved

  17. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Great, thank you! I just uploaded the new files on the repository. Since this bug is only affecting a few people, I will not change the version number, and you will not get a notification in your WP Plugins managament page. You can manually download the zip file and FTP all the files to your server:

    http://downloads.wordpress.org/plugin/wp-slimstat.2.8.zip

    Lelebart and Yannis, please let me know if this solves the issue.

    Thank you for your patience!

    Camu

  18. camu
    Member
    Plugin Author

    Posted 2 years ago #

    PS: a vote for my plugin would be a nice way to say thank you!

  19. lelebart
    Member
    Posted 2 years ago #

    You did it! It solved.

    btw, ot: new files also solved that issue: http://lab.duechiacchiere.it/index.php?topic=442.0 (feel free to remove that thread)

  20. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you, Lelebart. As for that thread, people are reporting non-consistent behavior with caching plugins: some say it works (like in your case), others say it doesn't. This "issue" will be addressed in version 3.0, in which I'm planning to introduce a GA-like tracking system, totally Javascript based, which avoids the issues caused by WP SuperCache and co.

    Stay tuned,
    Camu

  21. ronthai
    Member
    Posted 2 years ago #

    I started with WP about a year ago, including plugins. WP never gave me any problems, plugins did. WP-SlimStat is the only plugin I still use as a beginner, because Camu/Dino is a star and ....

    ALL you other people fill in the rest of my positive message

  22. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you Ron, you made my day! I'm glad you guys appreciate what I've done so far.

    Cheers
    Camu

  23. ronthai
    Member
    Posted 2 years ago #

    You are welcome and I hope ALL the other plugin people learn from your dedication and HONESTY

  24. AkoZ
    Member
    Posted 2 years ago #

    hey .. hey , ... ;)
    nope, not a slimstat problem !!
    i found this forum just for this ;):
    'Fatal error: Call to undefined function wp_get_current_user() in /homepages/siteadress/wp-includes/capabilities.php on line 1187'
    this line 1187 is:
    'function current_user_can( $capability ) {
    $current_user = wp_get_current_user();'

    also in a stupid but (sometimes) hasardeous hope, i just download the fresh plugin slimstat(which i haven't in fact) to test if ever it can correct anything.. ?
    But not !
    i don't till know the bug but i can say my plugins are in a network site means like http://siteadress/wp-admin/network/
    and in fact i'll search this way ...
    I will begin by finding if the network is up to date ;) ..
    next to say ...

  25. camu
    Member
    Plugin Author

    Posted 2 years ago #

    AkoZ, I just tested my plugin in a network environment. The problem only occurred if you have set some restrictions to view/admin WP SlimStat. But it should be fixed now. Please advise.

    Camu

  26. AkoZ
    Member
    Posted 2 years ago #

    to access my admin dashboard on the site where the network is ..
    It begins by crashing !!
    Fatal error: Out of memory (allocated 29360128) (tried to allocate 77824 bytes) in /networkWPsite/wp-admin/includes/user.php on line 121

    also .. i try to stop the network.. (false in "multisite lines "in config.php .. )
    and yep i can access my first site (the network admin .. yet some plugins are there.
    But there is just one thing :
    Fatal error: Call to undefined function wp_get_current_user() in /siteadress/wp-includes/capabilities.php on line 1187 is till there ! ..
    I really think it is related to the network coz of the adress where it appears: http://siteadress/wp-admin/network/
    (yep: the network dashboard ... from the bar up on site ("my sites" button) there is a mis-order of tyhe 2 sites i think .. i'll try further with the http://wordpress.org/extend/plugins/networks-for-wordpress/installation/ plugin ..
    I install all right your slimstat plugin and it's all OK ;)) thanks for any idea ...

  27. camu
    Member
    Plugin Author

    Posted 2 years ago #

    Have you tried to reinstall/re-download WP SlimStat from here?

    http://downloads.wordpress.org/plugin/wp-slimstat.2.8.zip

    Thanks,
    Camu

  28. AkoZ
    Member
    Posted 2 years ago #

    in fact i pass on this thread coz of the ..."capabilities.php on line 1187" and your slimstat plugin, as i wrote, is all ok.
    I first DL it to try if ... ;)
    But i'll keep an eye on the network config..

  29. camu
    Member
    Plugin Author

    Posted 2 years ago #

    thank you! a vote for my plugin would be a nice way to show your support!

  30. educatenigeria
    Member
    Posted 2 years ago #

    i am having a problem too. I got this error from my blog: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /home/educgng1/public_html/blog/wp-content/plugins/wp-slimstat/cache/cache.php on line 3

    I tried deleting slimstat from my ftp server but now i have another error which is Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/educgng1/public_html/blog/wp-admin/includes/plugin-install.php on line 302

    Can you be of assistance please.

    http://www.educatenigeria.org.ng/blog

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic