Forums

[resolved] Error in capabilities.php after upgrade from 2.6 to 2.7 (9 posts)

  1. darchik
    Member
    Posted 4 years ago #

    Hi all. Upgrade to 2.7 fromd 2.6, change all files, and then write to me

    Fatal error: Cannot use string offset as an array in public_html/blog/wp-includes/capabilities.php on line 116

    cant do nothing. when go to upgrade.php - same error. :)

  2. Samuel B
    moderator
    Posted 4 years ago #

    you have a widget or plugin issue.
    did you deactivate the plugins before upgrading?

  3. darchik
    Member
    Posted 4 years ago #

    plugins - yes. all!
    theme - no. and theme with admin interfase not work together - so admin must work. :(

  4. darchik
    Member
    Posted 4 years ago #

    All ok. ill resolve problem myself.

    its about config.php - must reload new config.php from 2.7 lol

  5. Milan
    Member
    Posted 4 years ago #

    I am getting the same error.

    its about config.php - must reload new config.php from 2.7 lol

    Do you mean "wp-config.php" file? If so, what did you do to reload it?

  6. Flesher
    Member
    Posted 4 years ago #

    I have the same problem... I change old wp-config.php with newone... any help maybe?

    Thank you

  7. n00bf0rc3
    Member
    Posted 4 years ago #

    in .htaccess add:

    php_flag magic_quotes_runtime off
    php_flag quotes_gpc off
  8. Flesher
    Member
    Posted 4 years ago #

    I tried all this but nothing works .

    I have php5-5.2.8 , php5-mysql-5.2.8,apache-2.2.11 on my server.

    Now i have this error

    Fatal error: Cannot unset string offsets in /usr/local/www/blog/wordpress/wp-includes/widgets.php on line 621

    Any help appreciated...

  9. ohmybrain
    Member
    Posted 4 years ago #

    I changed this in my php.ini file, restarted apache and all was well.
    php_flag magic_quotes_runtime off
    php_flag quotes_gpc off

    However I am running this embedded in a Joomla 1.1.x site which prefers:
    php_flag magic_quotes_runtime on
    php_flag quotes_gpc on

    So I guess they do not play nice together.
    It is my belief that requiring this setting to be off is not good. Magic_quotes_runtime on is there for a reason with frameworks like Joomla that have over 4000 extensions by 3000 developers. Sometimes a little wiggle room is helpful.

Topic Closed

This topic has been closed to new replies.

About this Topic