
20th March 2012, 02:00
|
|
Member
|
|
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 23 Times in 14 Posts
|
|
PHP 5.4 problems
Hello,
i tested 5.4 a little bit and got some errors:
PHP Code:
Strict Standards: Non-static method SimplePie_Misc::parse_date() should not be called statically, assuming $this from incompatible context in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 60
Strict Standards: Non-static method SimplePie_Parse_Date::get() should not be called statically, assuming $this from incompatible context in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 10870
i fixed some notice errors
regards
xaver
|
|
The Following User Says Thank You to xaver For This Useful Post:
|
till (20th March 2012)
|

20th March 2012, 07:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
Have you tried to define both methods as static?
|

20th March 2012, 08:58
|
|
Member
|
|
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 23 Times in 14 Posts
|
|
No, but i will look into it.
I fixed some other PHP 5.4 Notice Errors.
e.g.
if $conf['country'] is not defined and $conf = array() is defined it will drop an notice error if you use $conf['country']
i did s small if..
(isset($conf['country']) ? $conf['country'] : '')
|

20th March 2012, 11:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
I guess that there is a wrong variable used, the country settings in ISPConfig are in the variable $conf['language'] and not $conf['country'] (there is no separate contry setting available, so replacing the variable should fix the error.
|

20th March 2012, 11:15
|
|
Member
|
|
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 23 Times in 14 Posts
|
|
Its in client and reseller in list. (My last commit)
Also i think it was readData witch had an error with readData['demo_viewmode']
or
Notice: Undefined variable: maintenance_mode_error in /usr/local/ispconfig/interface/web/login/index.php on line 238
Looks like each array element need a "isset() && condition(e.g. == != > <= ...)" the possibility exists its not set, because the element will be created.
I turned two functions into static functions and it looks like it works.
Last edited by xaver; 20th March 2012 at 11:22.
|

20th March 2012, 11:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
Quote:
|
Notice: Undefined variable: maintenance_mode_error in /usr/local/ispconfig/interface/web/login/index.php on line 238
|
I fixed that in svn and changed the country setting to language.
|

22nd March 2012, 02:58
|
|
Member
|
|
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 23 Times in 14 Posts
|
|
Quote:
Originally Posted by brian1999
Its in client and reseller in list.
|
Sorry. i dont understand.
Last edited by till; 22nd March 2012 at 08:58.
|

22nd March 2012, 08:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
This was a spam post, I removed that now. I edited your post and removed the spam link that you quoted with his message
|

23rd March 2012, 05:41
|
|
Member
|
|
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 23 Times in 14 Posts
|
|
Oh i saw no link, maybe blocked by my Browser and addons.
i will commit simplepie with static functions. Looks like it works fine.
can you take a look at commit 3011? fixed a lot of stuff for php 5.4. (+ i think small bug -> see comment)
Last know errors are at FAQ management, but i think the problem is of the wrong use of list/template system.
mail_transport_edit and mail_user_edit have a lot of @. That is bad because if a real problem comes around you won't see it.
|

23rd March 2012, 09:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
|
|
Quote:
|
i will commit simplepie with static functions. Looks like it works fine.
|
Thanks!
Quote:
|
can you take a look at commit 3011? fixed a lot of stuff for php 5.4. (+ i think small bug -> see comment)
|
Looks fine  Thanks for fixing the php notices.
Quote:
|
Last know errors are at FAQ management, but i think the problem is of the wrong use of list/template system.
|
I guess we should consider to rewrite the faq module so that it uses the trmaplt system correctly. Might be cleaner then building workarounds to get the sorting functions to work with the current code.
Quote:
|
mail_transport_edit and mail_user_edit have a lot of @. That is bad because if a real problem comes around you won't see it.
|
That should be changed in the long term indeed. I made a todo item in the bugtracker.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 03:43.
|
|
Recent comments
1 day 3 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 13 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 9 hours ago