News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Problem with search in Admin Center

Started by MultiformeIngegno, November 12, 2009, 09:40:29 AM

Previous topic - Next topic

MultiformeIngegno

Hello! :)
When I search something in the Admin Center I receive this error:
Fatal error: Cannot use string offset as an array in /public_html/forum/Sources/ManageMail.php  on line 287

:(
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Oldiesmann

What are you searching for? I've never run into that issue, and I can't see anything on that particular line that would cause the error.

Does this fix it at all?

Sources/ManageMail.php

Find
Code (Lines 286-287) Select
$body = $birthdayEmails[empty($modSettings['birthday_email']) ? 'happy_birthday' : $modSettings['birthday_email']]['body'];
$subject = $birthdayEmails[empty($modSettings['birthday_email']) ? 'happy_birthday' : $modSettings['birthday_email']]['subject'];


Replace
if (empty($modSettings['birthday_email']))
{
$modSettings['birthday_email'] = 'happy_birthday';
}
$body = $birthdayEmails[$modSettings['birthday_email']]['body'];
$subject = $birthdayEmails[$modSettings['birthday_email']]['subject'];

MultiformeIngegno

Quote from: Oldiesmann on November 12, 2009, 11:54:44 AM
What are you searching for? I've never run into that issue, and I can't see anything on that particular line that would cause the error.
It occurs every time I use the Admin Center search box, and I'm not using strange characters, I receive it also if I search "abc"...

Quote from: Oldiesmann on November 12, 2009, 11:54:44 AM
Does this fix it at all?
No... nothing changes.. :(
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Fabius85

i get the same error whenever i click on Mail > Settings in the admin panel...

Arantor

Holder of controversial views, all of which my own.


Fabius85

Quote from: Arantor on November 19, 2009, 10:51:27 PM
What mods do you have installed?
only recaptcha, but i dont think the problem depends on it :-\

Arantor

It might do if it adds anything to the admin panel.
Holder of controversial views, all of which my own.


MultiformeIngegno

Quote from: Arantor on November 20, 2009, 08:13:27 AM
It might do if it adds anything to the admin panel.
I don't have ReCaptcha installed, only SimplePortal, Sitemap and Aeva...
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Arantor

Same answer. It may well be any/all of those mods that affect it.
Holder of controversial views, all of which my own.


Fabius85

Quote from: Arantor on November 20, 2009, 08:17:11 AM
Same answer. It may well be any/all of those mods that affect it.
just tried uninstalling recaptcha mod. so there were no mods on my forum: the problem persists.

Beagleboys

it's not a mod problem. i have all those mod installed(excluding simpleportal) and my SMF work fine.

Arantor

Holder of controversial views, all of which my own.


MultiformeIngegno

Quote from: Arantor on November 20, 2009, 09:36:33 AM
OK.... so what version of SMF 2.0 ?
Mine is RC2... all worked properly in earlier versions...
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Fabius85


Beagleboys

did you tried to replace ManageMail.php with the original that you can find in an original package of SMF?

Fabius85

Quote from: Beagleboys on November 20, 2009, 11:59:13 AM
did you tried to replace ManageMail.php with the original that you can find in an original package of SMF?
yep, however the file was the original one, it was never edited after installation.
problem persists...

MultiformeIngegno

Quote from: Fabius85 on November 20, 2009, 01:26:42 PM
Quote from: Beagleboys on November 20, 2009, 11:59:13 AM
did you tried to replace ManageMail.php with the original that you can find in an original package of SMF?
yep, however the file was the original one, it was never edited after installation.
problem persists...

Same here...
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Norv

What version of PHP are you on?
Please check it out in phpMyAdmin ("server" link), or post a phpinfo() file.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Basile Sebastiano

Quote from: lorenzone92 on November 12, 2009, 09:40:29 AM
Hello! :)
When I search something in the Admin Center I receive this error:
Fatal error: Cannot use string offset as an array in /public_html/forum/Sources/ManageMail.php  on line 287

I am the some problem in:
Admin center > mail > setting
I Use RC2 in this server: www.2bmanzoni.netsons.org/info.php [nofollow]
S. Basile

toretto86

Quote from: russena on November 21, 2009, 11:39:40 AM

I am the some problem in:
Admin center > mail > setting
I Use RC2 in this server: hxxp:www.2bmanzoni.netsons.org/info.php [nonactive]

Idem for hxxp:secretland.netsons.org/forum/index.php [nonactive]
and i have some problems with activation emails (no send AE to hotmail users)

Advertisement: