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.

Cannot publish or edit posts

April 15, 2012 1:36pm

Subscribe [2]
  • #1 / Apr 15, 2012 1:36pm

    chunky

    35 posts

    I’m getting these errors when trying to post or edit a post.  I upgraded from 1.7 (details below).  nothing else renders on the page except for these errors.  The file tab.pages.php exists and has content.

    A PHP Error was encountered
    
    Severity: Warning
    
    Message: in_array() expects parameter 2 to be array, null given
    
    Filename: pages/tab.pages.php
    
    Line Number: 198
    
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/system/codeigniter/system/core/Exceptions.php:170)
    
    Filename: libraries/Functions.php
    
    Line Number: 770
    
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/system/codeigniter/system/core/Exceptions.php:170)
    
    Filename: libraries/Functions.php
    
    Line Number: 393
    
    ==============

    v2.4.0 - Build: date 20120123
    PHP version 5.3.4
    MySQL version 5.0.95-community-log

  • #2 / Apr 15, 2012 4:45pm

    glenndavisgroup

    436 posts

    Hi chunky,

    I’m assuming this error is in the CP. Do you have any third party add-ons that you were using with your old EE site? If so, have you checked for updates to make sure they are compatible with EE 2.4?

    Mike

  • #3 / Apr 15, 2012 5:57pm

    chunky

    35 posts

    Yes, it’s a CP error.  Only add-on is User, which is compatible and up-to-date.

  • #4 / Apr 16, 2012 3:39pm

    Dan Decker

    7338 posts

    Hi chunky,

    Do you have the Pages Module installed?

    Go to Add-ons->Modules->Pages, what do you see?

    If Pages is not installed, try installing it. Do the errors persist?

    You should not have to have Pages installed, so there may be a bug here.

    I look forward to your reply!

    Cheers,

  • #5 / Apr 17, 2012 2:01pm

    chunky

    35 posts

    Yes, Pages (2.2) is installed, but I haven’t created any pages (i.e., “No Pages Currently Exist”).

    BTW: I can create entries, edit and delete them, I just don’t get to see them on the first go-round (bc I get the above errors and nothing else renders).  When I delete an entry, I get these added errors:

    =============
    A PHP Error was encountered
    Severity: Warning

    Message: Cannot unset offset in a non-array variable

    Filename: pages/tab.pages.php

    Line Number: 273
    ================
    A PHP Error was encountered
    Severity: Warning

    Message: Cannot unset offset in a non-array variable

    Filename: pages/tab.pages.php

    Line Number: 274
    ================
    A Database Error Occurred
    Error Number: 1054

    Unknown column ‘site_pages’ in ‘field list’

    UPDATE `exp_sites` SET `site_pages` = ‘YjowOw==’ WHERE `site_id` = 1

    Filename: modules/pages/tab.pages.php

    Line Number: 281
    ==============================

  • #6 / Apr 19, 2012 3:04pm

    Shane Eckert

    7174 posts

    Hey chunky,

    Did you try disabling the plugin and then re-enabling it?

    Can you tell me what version your config.php files says you are on? It should read “240”.

    Thanks!

  • #7 / Apr 20, 2012 3:27pm

    chunky

    35 posts

    I tried to disable the module and got this error:

    ====================================

    Error Number: 1091

    Can’t DROP ‘site_pages’; check that column/key exists

    ALTER TABLE `exp_sites` DROP `site_pages`

    Filename: modules/pages/upd.pages.php

    Line Number: 117

    ====================================

    When I re-enabled it, I got this error:

    ====================================

    A Database Error Occurred
    Error Number: 1050

    Table ‘exp_pages_configuration’ already exists

    CREATE TABLE `exp_pages_configuration` ( `configuration_id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `site_id` INT( 8 ) UNSIGNED NOT NULL DEFAULT ‘1’, `configuration_name` VARCHAR( 60 ) NOT NULL , `configuration_value` VARCHAR( 100 ) NOT NULL ) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci

    Filename: modules/pages/upd.pages.php

    Line Number: 86

    ====================================

    That said, I’m not getting the other errors after the disable/enable steps.

  • #8 / Apr 20, 2012 4:25pm

    Shane Eckert

    7174 posts

    Hey chunky,

    Odd. So are you saying that after enable/disable, things are good to go now?

    Thanks,

  • #9 / Apr 20, 2012 6:16pm

    chunky

    35 posts

    Yep.  Seems to be working.  Figured I’d post errors in case others run into the same issue.

  • #10 / Apr 23, 2012 2:05pm

    Shane Eckert

    7174 posts

    Hey chunky,

    That’s awesome. Thanks for posting those.

    If you need anything else, please just let us know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases