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 errors after upgrade from 1.6 to 2.9

August 17, 2014 12:59pm

Subscribe [1]
  • #1 / Aug 17, 2014 12:59pm

    gcylinder

    49 posts

    After upgrading from 1.6 to 2.9, I’m getting the errors below when trying to bring up the File Upload preferences, on Publish forms, and other pages. The errors occurred when I was running PHP 5.3.x (the .x is the best indication I could get from Dreamhost) So now I’m running PHP 5.4.x and it says “Fast CGI” after the 5.4.x.

    A PHP Error was encountered
    Severity: Warning
    Message: array_merge(): Argument #2 is not an array
    Filename: models/file_upload_preferences_model.php
    Line Number: 111
    A PHP Error was encountered
    Severity: Warning
    
    Message: array_merge(): Argument #2 is not an array
    Filename: models/file_upload_preferences_model.php
    Line Number: 111
    A PHP Error was encountered
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /home/siplg/seedip-dev.dreamhosters.com/s33dSystem/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 442

    I also had Mark Huot’s File extension running in 1.6 and was going to try and run this fix next: https://ellislab.com/forums/viewthread/218268/
    so I was trying to get the upload directory ID from the File Upload Preferences.

  • #2 / Aug 17, 2014 1:59pm

    gcylinder

    49 posts

    Solved my issue. Something during the upgrade process inserted this line into my system/expressionengine/config/config.php file:

    $config['upload_preferences'] = 'Array';

    I commented that out and no more errors. Hope this helps someone else.

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

ExpressionEngine News!

#eecms, #events, #releases