Jump to content

Recommended Posts

I am having a problem when trying to upload a skin using IPB 2.0.X... I get the folling error:

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Fatal error: Cannot use string offset as an array in *file* on line 749[/quote]

Here's the code of that section of the error:

[code]
    /*-------------------------------------------------------------------------*/
    // _EXTRACT INFO
    /*-------------------------------------------------------------------------*/
    
    function _extract_xml_info( $content, $xml, $xmlarchive )
    {
        global $ibforums, $std, $DB;
        
        $return = array();
        
        //-------------------------------
        // Unpack the datafile
        //-------------------------------

        $xml->xml_parse_document( $content );
        
        if ( ! is_array( $xml->xml_array['infoexport']['infogroup']['info'][0]  ) )
        {
            $xml->xml_array['infoexport']['infogroup']['info'][0] = $xml->xml_array['infoexport']['infogroup']['info'];
        }
        
        if ( is_array( $xml->xml_array['infoexport']['infogroup']['info'] )  )
        {
            foreach( $xml->xml_array['infoexport']['infogroup']['info'] as $idx => $entry )
            {
|||THIS IS 749|||            $return['set_author_email'] = $entry['set_author_email']['VALUE'];
                $return['set_author_name']  = $entry['set_author_name']['VALUE'];
                $return['set_author_url']   = $entry['set_author_url']['VALUE'];
            }
        }
        
        return $return;
    }
[/code]


Do you know what might be wrong? Is something out of date with newer PHP versions?

When I removed a section of that code, this went away, but the same error came up on a line further down... So I thought maybe some of the language used was from and older PHP version.

Example:

In some of the files $_GET_HTTP_POST or something like that was used and someone told me I could shorten it to $_POST... Thought there might be another language error like that here aswell.


Thanks in advance for help. Please help.
Link to comment
https://forums.phpfreaks.com/topic/8209-invisionpowerboard-file-problem/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.