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.

PHP Error (Categories)

September 12, 2011 12:01am

Subscribe [3]
  • #1 / Sep 12, 2011 12:01am

    JREAM

    16 posts

    When creating a new entry, under Categories I have this:

    A PHP Error was encountered
     Severity: Warning
     Message: Invalid argument supplied for foreach()
     Filename: core/Loader.php(727) : eval()'d code
     Line Number: 7

    Cliff Notes:
    - I created two categories
    - I may have assigned them to a page or two
    - I erased my categories

  • #2 / Sep 12, 2011 2:33am

    John Henry Donovan

    12339 posts

    JREAM,

    What version and build of EE are you using?
    Are you using any add-ons?

    Have you saved a Publish Layout? If so please remove it and see if error persists.

  • #3 / Sep 12, 2011 3:59am

    JREAM

    16 posts

    Heya,

    EE: 2.2.2
    Addon: MSM

    Here is what fixed it:
    1: CP Home > Administration > Channels > Group Assignments
    2: Update the Category Group to ‘None’ (As that’s the only Option)

    Steps to Reproduce: (Uncertain)
    1: It appears I had a Channel Group,
    2: Assigned to a Channel,
    3: Saved it,

    Then when I realized I didn’t want them,
    I only erased the Category, and I get the eval error.

    It appears if you erase Channel Categories the system thinks multiple ones still exist..
    Man sorry, I am still not used to the name of these things—It has to do with the Categories lol.

  • #4 / Sep 12, 2011 6:58pm

    Dan Decker

    7338 posts

    JREAM,

    After setting the Category Group to “none” for your Channel, are you all squared away? Is there anything else we can assist you with?

    Cheers,

  • #5 / Sep 13, 2011 7:47am

    JREAM

    16 posts

    All set by doing the above, you can close this 😊

  • #6 / Sep 13, 2011 8:15am

    Dan Decker

    7338 posts

    JREAM,

    I’m glad this issue is all squared away for you. If you need help with anything else, please start a new thread.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases