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
:(
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
$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'];
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.. :(
i get the same error whenever i click on Mail > Settings in the admin panel...
What mods do you have installed?
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 :-\
It might do if it adds anything to the admin panel.
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...
Same answer. It may well be any/all of those mods that affect it.
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.
it's not a mod problem. i have all those mod installed(excluding simpleportal) and my SMF work fine.
OK.... so what version of SMF 2.0 ?
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...
did you tried to replace ManageMail.php with the original that you can find in an original package of SMF?
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...
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...
What version of PHP are you on?
Please check it out in phpMyAdmin ("server" link), or post a phpinfo() file.
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
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: www.2bmanzoni.netsons.org/info.php
Idem for http://secretland.netsons.org/forum/index.php
and i have some problems with activation emails (no send AE to hotmail users)
Quote from: Norv on November 21, 2009, 09:26:50 AM
What version of PHP are you on?
Please check it out in phpMyAdmin ("server" link), or post a phpinfo() file.
5.2.11
http://www.rockciclopedia.com/phpinfo.php
everyone had the same problem with netsons? maybe is the host...
Quote from: Beagleboys on November 23, 2009, 05:33:46 PM
everyone had the same problem with netsons? maybe is the host...
But.... are you blind..? Please look at my post just above yours...
Quote from: lorenzone92 on November 23, 2009, 06:10:15 PM
Quote from: Beagleboys on November 23, 2009, 05:33:46 PM
everyone had the same problem with netsons? maybe is the host...
But.... are you blind..? Please look at my post just above yours...
First of all: Sta buono. If you want help at least be nice or call someone that have time to lose while you insult him. I've missed your post because it was in a new page. And the fact that you have a second level domain don't exclude that you are on netsons.
Second: You have nothing related to this in the forum error log?
Third: i have php 5.0.82sp1 and no error... maybe this is the error...
A quick rDNS shows they're on SilentFlame, quite different to netsons.
well, a deep check and i've discovered that phpmyadmin and mysql are on different server with different php versions.
I've spot a difference with the phpinfo posted by a user and the mine. The user had sendmail_from empty and i have a value here. Maybe that generate the error?
Quote from: Beagleboys on November 23, 2009, 05:33:46 PM
everyone had the same problem with netsons? maybe is the host...
The same with Aruba host windows
www.avolesi.it
php info
http://www.avolesi.it/info.php
Quote from: russena on November 24, 2009, 08:16:43 AM
Quote from: Beagleboys on November 23, 2009, 05:33:46 PM
everyone had the same problem with netsons? maybe is the host...
The same with Aruba host windows
www.avolesi.it
php info
http://www.avolesi.it/info.php
i'm on aruba but linux not windows. I have no problem at all. Ask to switch.
No, because I need to use script Asp (visubox end other)
any solution???
there are some bugs in the italian template of EmailTemplates.italian.php:
$birthdayEmails array is repeated 2 times (the old array with a single mail, and the new one with different birthday mails to send).
the ' quotes in the arrays are ALL wrongly preceded by \ slashes so the array would never work.
and some parts of the translations are missing, so that, for example, registering a new user by admin panel returns a "template missing" error.
I made the necessary changes to the template: i fixed the birthday mail array and translated all the missing arrays (which were about 10, regarding almost openID and coppa registrations). I also corrected 2 or 3 translation errors in birthday mails
Here it is a FULLY WORKING EmailTemplates.italian.php.
http://pastie.org/717909
Simply replace the code of EmailTemplates.italian.php which you can find in /Themes/default/languages with the code i posted here.
I hope i'm gonna get some credits in the next italian translations ;D
Regards,
Fabius
Thanks, italian translation updated... :)
Solved.
Thanks. No problem now.
Tnx a lot :)