PHP Warning: strtr(). The second argument is not an array.

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
flycker
Registered User
Posts: 25
Joined: Fri Jun 01, 2007 2:27 pm

PHP Warning: strtr(). The second argument is not an array.

Post by flycker »

Code: Select all

Feb 19 07:42:39 s302 php5-cgi: PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /.../phpbb3/includes/session.php on line 2088
Line: 2088

Code: Select all

return strtr(@gmdate($date_cache[$format]['format_long'], $gmepoch + $date_cache[$format]['zone_offset']), $date_cache[$format]['lang']);
This happened after upgrading to 3.0.4.
There is any solution to this problem?

* I already update all languages files and clear the cache.
Last edited by ameeck on Sun Mar 08, 2009 12:10 pm, edited 2 times in total.
Reason: Topic icon changed
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: PHP Warning: strtr(). The second argument is not an array.

Post by ameeck »

Please provide us with the information necessary to assist you by filling out the Support Request Template.
flycker
Registered User
Posts: 25
Joined: Fri Jun 01, 2007 2:27 pm

Re: PHP Warning: strtr(). The second argument is not an array.

Post by flycker »

Your board's URL: http://www.forums-free.com/
Version of phpBB3: 3.0.4
Was this a fresh install or a(n) update/upgrade/conversion (please be specific)?
Upgrade
If update, what package(s) did you use?
Patch with 'phpBB-3.0.4-patch.zip', and use 'phpBB-3.0.4-files.zip' to fix errors on patch.
Did you use an automated wizard provided by your host to install phpBB?
No.
MODs you have installed:
Basically SEO Mod.
When the problem started:
After upgrade to 3.0.4.
Your level of expertise (be honest):
It's really good.
Version of PHP used: PHP 5.2.0-8+etch13
Database and version used: MySQL 5.0.32

I already recheck the function 'format_date', it's the same of the lasted version (3.0.4).
The problem is that the variable $date_cache[$format]['lang'] it's empty.
The same happen to variable $this->lang['datetime'] in this function.

This only happens to me?
User avatar
spacefish
Registered User
Posts: 173
Joined: Mon Oct 09, 2006 8:48 am

Re: PHP Warning: strtr(). The second argument is not an array.

Post by spacefish »

flycker wrote:This only happens to me?
No, me too.
And similar here: http://www.phpbb.com/community/viewtopi ... &t=1450675

This board is using MySQL(i) 5.0.67 (local install is OK though), another board almost identical (but less mods, same server) is using MySQL 5.0.67 - that aside from the php was the only significant difference I could find.

Anyone have any ideas?

Edit:
Bug report already made here: http://www.phpbb.com/bugs/phpbb3/39015
Last edited by spacefish on Sun Mar 08, 2009 11:59 am, edited 1 time in total.
User avatar
RMcGirr83
Former Team Member
Posts: 21837
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: PHP Warning: strtr(). The second argument is not an array.

Post by RMcGirr83 »

Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
spacefish
Registered User
Posts: 173
Joined: Mon Oct 09, 2006 8:48 am

Re: PHP Warning: strtr(). The second argument is not an array.

Post by spacefish »

Yep - just found that one too. Thanks!
Locked

Return to “[3.0.x] Support Forum”