ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Best way to troubleshoot CP errors?

September 27, 2012 10:24pm

Subscribe [5]
  • #1 / Sep 27, 2012 10:24pm

    wbdzynr

    137 posts

    I’ve got a few sites right now that I’m experiencing some issues with.  I’m going to guess they both deal with an add-on, but can’t tell what the best way is to troubleshoot.

    Site 1:  Usually when I first log in, I get a long string of PHP errors, such as

    A PHP Error was encountered
    Severity: Warning
    Message: array_unique() expects parameter 1 to be array, null given
    Filename: models/addons_model.php
    Line Number: 145
    
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined variable: plugin_info
    Filename: models/addons_model.php
    Line Number: 183
    
    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at \codeigniter\system\core\Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 412

    When this happens, some of the sub-menu items are missing, like I can’t see Custom Fields under Admin->Channel Administration, but I can see Categories.  All I have to do is refresh the page, and the errors are gone and everything is fine.  Mainly just a nuisance at this point - I think.

    SITE 2:  This site doesn’t show any errors, but just redirects you to the home page of the site, even though the URL still shows the correct link in to where you wanted to go in the CP.  Strange.

    Anyway, I wasn’t sure if there was a good way to start troubleshooting?  Site 1 uses quite a few add-ons (which I do my very best at keeping updated) and Site 2 uses a handful.

    Thanks for any tips!

    Todd

  • #2 / Sep 28, 2012 3:11pm

    Dan Decker

    7338 posts

    Hi Todd,

    Strange indeed! Let’s sort it out.

    On site 1, do you remember that last add-on installed or removed? Do you have any add-ons that change the Control Panel menus? What version of ExpressionEngine is this site on?

    Site 2, Make sure you are being consistent with www or no www in your URL, config, and Control Panel. What version of ExpressionEngine is this site on?

    Cheers,

  • #3 / Sep 28, 2012 10:03pm

    wbdzynr

    137 posts

    Hi Dan -

    Sorry, I didn’t get a notice that you replied…  :(

    Site 1:  Yes, I’m running Zoo Flexible Admin, which I do on several sites.  I’m also running CP Shortcuts.  I did notice that Zoo FA had a “.1” upgrade, which I just did.  I also went through and either removed any add-ons that weren’t super necessary, and made sure the others were up-to-date.  The errors don’t happen every single time, so it’s hard to troubleshoot.  That’s why I was wondering about some other logs or ways to try to figure out what is going on.  I’ve logged out and back in several times after this, and things are ok.  So we’ll see.

    Site 2:  Yes, everything is ‘www’.  I’ll have to look and see if there is an add-on that might be out-of-date or something.  The problem is, I can’t even get to some of those screens without getting kicked out.

    Both sites are running the latest version of EE - 2.5.3

    Thanks!

    Todd

  • #4 / Sep 29, 2012 2:47am

    Enviromed

    375 posts

    I also get with both ee 2.5.2 and 2.5.3 a very LONG string of similar php errors including;

    all the following MESSAGES repeat as errors associated with Filename: models/addons_model.php Line Number: 145:

    Undefined variable: plugin_info
    array_unique() expects parameter 1 to be array, null given
    Undefined variable: plugin_info
    array_unique() expects parameter 1 to be array, null given
    ————————————————————————————————————
    the following MESSAGE repeats ENDLESSLY as errors associated with Filename: models/addons_model.php Line Number: 183

    Undefined variable: plugin_info array_unique() expects parameter 1 to be array, null given
    Undefined variable: plugin_info array_unique() expects parameter 1 to be array, null given
    ETC ETC ETC ETC. . . .

    It always clears with a refresh / clear cache.
    Shows up most of the time but not always. 
    I have a second ee install with exactly the same add-ons + more and it has never had this problem. 
    I did a clean install and the problem remains.

    Previously posted on this with another user and never received any support.  HEEEELP!

  • #5 / Sep 29, 2012 12:42pm

    wbdzynr

    137 posts

    I logged in this morning and have the errors again.  So my “fixes” last night (Site 1) didn’t help.  Booo.  :(

    Todd

  • #6 / Oct 01, 2012 3:57pm

    Dan Decker

    7338 posts

    Hi folks,

    Are either of you running any accessories in the Control Panel?

    Are these sites updates? Make sure /themes is fully up to date.

    Todd, is this something that we could see ourselves?

    Cheers,

  • #7 / Oct 01, 2012 4:30pm

    wbdzynr

    137 posts

    Hi Dan -

    Yes, I could provide you access to both CPs if that would help.  I was running Responsive CP but just uninstalled that to see if that would do anything.  Unfortunately, it’s not consistent enough to know just yet.

    Todd

  • #8 / Oct 03, 2012 12:15pm

    Dan Decker

    7338 posts

    Hey Todd,

    Let’s take our chances and at least get eyes on this. Be on the lookout for an email from EllisLab!

    Cheers,

  • #9 / Oct 03, 2012 1:08pm

    wbdzynr

    137 posts

    Hi Dan - Got it and just sent you the information.

    If you have an idea of when you can look at it, please let me know.  I need to still be actively working on the site to meet a deadline so I don’t want to bump into you…  :(

    Thanks!

    Todd

  • #10 / Oct 04, 2012 12:15pm

    Dan Decker

    7338 posts

    Just confirming we have your information.

    We won’t make any changes to production items without checking with you first. We take the utmost care to do no harm.

    We’ll be following up with you in the email thread and then post back here with our findings!

    ~

  • #11 / Oct 11, 2012 6:08am

    Sy Andersohn

    8 posts

    I’ve just seen the same problem straight after logging in to the CP. This disappeared after refreshing or moving to another page.

    ExpressionEngine v2.5.2 - Build Date: 20120606

    This is running a 3 multi-sites where I logged into the default site.

    (Note: I don’t have Zoo Flexible Admin installed)

    The errors repeated with the following:


    PHP Error was encountered
    Severity: Notice
    Message: Undefined variable: plugin_info
    Filename: models/addons_model.php
    Line Number: 145

    A PHP Error was encountered
    Severity: Warning
    Message: array_unique() expects parameter 1 to be array, null given
    Filename: models/addons_model.php
    Line Number: 145

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined variable: plugin_info
    Filename: models/addons_model.php
    Line Number: 183

    A PHP Error was encountered
    Severity: Warning
    Message: array_unique() expects parameter 1 to be array, null given
    Filename: models/addons_model.php
    Line Number: 183


    I wonder if this helps: the last addon I installed before I saw this error was “Health Check”. It lists all addons installed so just thinking (before investigating) it might be responsible?

    Sy

  • #12 / Oct 12, 2012 4:54pm

    Shane Eckert

    7174 posts

    Hello SyA,

    Health Check is known to have a few issues. I would uninstall to see if that helps.

    I would also update to 2.5.3 as there is over 100 bug fixes included with that update.

    Thank you,

  • #13 / Oct 13, 2012 5:46am

    Sy Andersohn

    8 posts

    Thanks, I uninstalled Health Check and updated to latest version of EE as you suggested. I’ve not seen this problem since, though it did appear pretty randomly. I’ll report back if it ever pops up again (hopefully not though)

    Sy

  • #14 / Oct 15, 2012 8:57pm

    Robin Sowell

    13255 posts

    Sounds good, Sy.  The come/go nature of the problem suggests it might be related to something that caches the data.  Thus you only see the error when it has to refresh that cache.  Something to watch for if it crops up again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases