Fatal error: [] operator not supported...

Report bugs and errors in this forum.

Fatal error: [] operator not supported...

Postby Picasso » Sun Dec 18, 2005 11:58 pm

Fatal error: [] operator not supported for strings in ....\inc\plugins.inc.php on line 332 (I've removed the full directory reference).



I've done a fresh install of 2.5. I created some categories. Whenever I add a news item I get the above error. The item is, however, saved to the mysql database.



Any ideas?
Picasso
 
Posts: 12
Joined: Fri Oct 14, 2005 3:50 am

Postby DiGiTAL » Mon Dec 19, 2005 1:29 pm

type avobe
Code: Select all
$category = explode (',', $category);
and the problem solved
DiGiTAL
 
Posts: 64
Joined: Sun Oct 16, 2005 1:15 am
Location: Ukraine

Postby FI-DD » Mon Dec 19, 2005 1:55 pm

Thanks, that really solved it. :D



I applied this bugfix to the download file.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Picasso » Mon Dec 19, 2005 4:50 pm

Sorry guys, but it's not working for me.



I downloaded the new file, and I can see the new line added.



Again, I did a fresh install, with a fresh mysql database. I'm getting the same error message. All I've done is created a category (Youth), and then tried to add an item. Everything else is left at the default settings.
Picasso
 
Posts: 12
Joined: Fri Oct 14, 2005 3:50 am

Postby FI-DD » Mon Dec 19, 2005 4:59 pm

Sorry, you're right.

I even had the error when creating a new subcategory. And the line fixed this error.



But when adding news the error is still existing. :(
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby FI-DD » Mon Dec 19, 2005 6:04 pm

Ok, please download it again.



I applied the fix at the wrong place before. It should work now. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Picasso » Mon Dec 19, 2005 9:43 pm

Working perfectly.Thanks!
Picasso
 
Posts: 12
Joined: Fri Oct 14, 2005 3:50 am

Postby FI-DD » Tue Dec 20, 2005 2:56 pm

It's working but not perfectly, I think. I noticed some problems when going to "Edit news". There were no categories shown for each news item.



I think I fixed it. Download the script again or change the line in plugins.inc.php from this:

Code: Select all
$category = explode (',', $category);




to this:

Code: Select all
$category = array();




Now it's working perfectly for me. :D
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Picasso » Tue Dec 20, 2005 4:44 pm

I could not see the categories either. Your fix works.....perfectly...(cough)! :wink:
Picasso
 
Posts: 12
Joined: Fri Oct 14, 2005 3:50 am


Return to Bugs and errors



Who is online

Users browsing this forum: No registered users and 0 guests