• Resolved cizsolt

    (@cizsolt)


    Hi,

    There is something broken in my admin backend of WPP as I am unable to load any top lists on the plugin’s Stats page (Most viewed, Most commented, etc.). All I can see is a loading/spinning icon and the posts/pages are not appearing. I can see an error popping up in the console log:

    TypeError: undefined is not an object (evaluating ‘hex.replace’) – HexToRGB chart.js line 111.

    Thank you for any suggestions in advance,
    Zsolt.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @cizsolt,

    Please try logging in into your site using a different browser (eg. Google Chrome, Mozilla Firefox, Microsoft Edge, etc). If the issue persist even after using a different browser then follow the Troubleshooting instructions (read from the second paragraph and on) and report back your results.

    Thread Starter cizsolt

    (@cizsolt)

    Hi Héctor!

    Thanks for the quick reply. I installed the Health Check & Troubleshooting plugin, activated the Troubleshooting mode, disabled all plugins, enabled WPP, switched to twenty-twenty-one theme, visited the WPP admin dashboard and unfortunately I get the same behavior with the same error in the console log. The top lists are not loading.

    Any other ideas?

    Thanks,
    Zsolt.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Did you try using a different browser as well?

    Thread Starter cizsolt

    (@cizsolt)

    Yes, sure, I started with a new browser, tried also in incognito mode.
    The error in Chrome’s console is:

    Uncaught TypeError: Cannot read property 'replace' of undefined
        at HexToRGB (chart.js?ver=5.4.1:1)
        at Object.populate (chart.js?ver=5.4.1:6)
        at Object.success (admin.js?ver=5.4.1:7)
        at c (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8:2)
        at l (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8:2)
        at XMLHttpRequest.<anonymous> (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8:2)
    • This reply was modified 3 years, 3 months ago by cizsolt.
    Plugin Author Hector Cabrera

    (@hcabrera)

    That’s odd. Other users have reported a similar issue but they were not able to figure out what was causing it. Not sure what exactly the problem is since I can’t reproduce it as everything works on my end.

    What operative system do you use? Also, can you try logging in into your site using a different computer and check again?

    Thread Starter cizsolt

    (@cizsolt)

    I just figured out, that the plugin has this problem only if I am logged in with my user. It works for other admin users, even if on the same roles. It is strange, that disabling all the plugins did not solve the problem with my user.

    • This reply was modified 3 years, 3 months ago by cizsolt.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Yeah, that sounds very strange indeed. I wonder what’s different about your user account that could be causing this?

    Thread Starter cizsolt

    (@cizsolt)

    That is a great question. What else can be there, that disabling the plugins would not solve…?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Beats me. I wish I knew so I could do something about it haha. Are you using or did you use at some point a plugin that changes how user roles work by default?

    Thread Starter cizsolt

    (@cizsolt)

    I did try a plugin one year ago, that allowed me to set custom plugin access permissions for different roles. But this issue with WPP appeared only in the last 2 months or so. I am logging in with the admin user I did set up when installing the WP, user ID 1. The other administrators were created later, by me. That is one difference between the users. I am also unable to change my admin user’s role to something else, it has to stay Administrator. I can change the other administrator’s roles.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Not sure the user ID has any relevance here. On my test site the administrator user’s ID is also 1 so that can’t be it.

    But this issue with WPP appeared only in the last 2 months or so.

    Remember anything in particular that changed on your website within that time frame? (Yeah, I know, two months is a lot of time haha but any clues might help us figure out what’s causing this).

    Thread Starter cizsolt

    (@cizsolt)

    I am constantly looking for ways to improve my website, so there are a quite a lot of frequent changes on the back- and frontend. Now that we’ve found out that it’s only my user affected, I’m thinking about what might be causing it and if I find out anything useful, I’ll let you know immediately. Thanks for thinking together today!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, please keep me posted if you find anything. I’d really love to have this fixed.

    Thread Starter cizsolt

    (@cizsolt)

    Hello Héctor!

    Good news, problem solved, bug found ?? To reproduce, change the Admin Color Scheme from your profile settings to Modern and voilá the charts and top lists will not load. On other schemes it looks like it is working, it is just this one, I was also using.

    I figured this out by changing the admin ID from 1 to 999 in phpmyadmin wp_users and then I logged back in. I noticed, everything is working as expected, so I was sure something saved in the wp_usermeta table is causing the issue. The first difference I noticed was the admin color scheme. Changed it and problem solved.

    Please let me know, if you can reproduce it.

    Thanks,
    Zsolt.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Oh! I’ll have a look right away, thanks for the hint!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Admin backend not displaying top lists’ is closed to new replies.