Hi there everyone,

I know it is fairly ridiculous to post an error generated by a single line of code without any accompanying code, but I'm hoping to simply figure out what this line of code is trying to do and then perform some type of workaround. It's a phpbb mod that is generating an error.

My error is in the navigation pane of the admin page:

Fatal error: Cannot use string offset as an array in C:\Program Files\xampp\htdocs\uhe\modules\PNphpBB2\admin\admin_forum_attribution.php on line 8

Line 8:

   $module['Forums']['Attribution'] = $file;

I found this, but his examples never have $bar on the receiving end, just bar.

Might anyone have an idea on how to write this to make in php5 compatible?

thanks,
json

    The error is elsewhere in the code. Search the admin_forum_attribution.php (or any file included prior to line 8) for "$module" and find where it is initialized. The error indicates that it is initialized or re-initialized as a string prior to line 8. The answer may be as simple as moving an include() statement to somewhere below line 8.

      Write a Reply...