Preben Olsen Sangvik
Newbie
Offline
Posts: 14
|
Quick fix worked. :-)
Can this error come from server config? (Seamed to come after server move: my host upgraded servers...)
|
|
|
|
|
Logged
|
|
|
|
J.M. Sanders
Newbie
Offline
Posts: 10
|
Yes, my host also updated php and changed some things with vars I believe.
I did some searching and there are other sites out there that use ModernBusiness which have this problem. I didn't find a solution yet.
I'll try the quick fix. Thanks!
|
|
|
|
« Last Edit: November 23, 2006, 12:53:34 PM by J.M. Sanders »
|
Logged
|
|
|
|
Preben Olsen Sangvik
Newbie
Offline
Posts: 14
|
I will also let you know that I tried a total new install of the template - after the webhotel upgrade - but still didn't work.
Use the quick fix for now...
|
|
|
|
|
Logged
|
|
|
|
J.M. Sanders
Newbie
Offline
Posts: 10
|
Quick fix works.  Thanks!!
|
|
|
|
|
Logged
|
|
|
|
Preben Olsen Sangvik
Newbie
Offline
Posts: 14
|
OK, I now know what couses it:
My host just, and I mean just, upgraded to PHP 5.2.0 from PHP 5
that made this warning arrive...
|
|
|
|
|
Logged
|
|
|
|
Andy Miller
RocketTheme
Hero Rocketteer
Offline
Posts: 5974
RTTC Kahuna
|
did you try implementing this: quick fix, replace that line 62 you just added with:
error_reporting(0);
|
|
|
|
|
Logged
|
|
|
|
Preben Olsen Sangvik
Newbie
Offline
Posts: 14
|
Oh yes, and it works.  Just wanted to let you know why it didn't show before - and suddenly came... It's most probably that it doesn't show on PHP 5 but on PHP 5.2.0 
|
|
|
|
|
Logged
|
|
|
|
|
|
Martin Hagen
Newbie
Offline
Posts: 17
|
Oh yes, and it works.  Just wanted to let you know why it didn't show before - and suddenly came... It's most probably that it doesn't show on PHP 5 but on PHP 5.2.0  to be right cause have the same problem (server upgrade 5 to 5.2) and it appears... i use error reporting off and it works, but is this the final solution?
|
|
|
|
|
Logged
|
|
|
|
Dimitri
Newbie
Offline
Posts: 9
|
Any real solution on this error?
|
|
|
|
|
Logged
|
|
|
|
Ako
Newbie
Offline
Posts: 12
|
quick fix, replace that line 62 you just added with:
error_reporting(0);
All of a sudden, out of the blue, I got the same error message on one of my sites. A quick search in this forum and I got the error message to vanish again. Thanks for the solution, Andy 
|
|
|
|
|
Logged
|
|
|
|
Alistair Nelson
Newbie
Offline
Posts: 12
|
I just got this error as well, bluehost.com must have done the same php update. For me it is in the extermities template. Thanks for quick fix.
|
|
|
|
|
Logged
|
|
|
|
|
Micah Johnson
|
hi, just testing an old site on a new server with PHP5.x and got this error... quick fix stopped the errors but broke other things... such as SIFR and some other blocks... this solved it: http://www.joomlaportal.de/joomla-templates/89527-fehler-im-template.htmlthe skinny is: look at the code in post 5... add the line 62+ code and replace the original line 80 with the appropriate 80+ code... solved. Just thought I'd share!
|
|
|
|
|
Logged
|
I'm an Individual, just like everyone else...
|
|
|
|
Beev Yarr
|
Good Call. This worked for me as well. http://www.joomlaportal.de/joomla-templates/89527-fehler-im-template.html. Of course I thought I'd have to translate it first, but the fix is actually pretty simple to follow. Translated from Google: If the number of elements in the array containing 0,Then an element in the array. Here is 0, so that the array contains an element and it will not be through Zero divided. Line: 62 (Add) PHP code: if( count($tab_colors)==0 ) { $tab_colors = array(0); } Now, however, a 0 at the beginning of the string of active menu item and As a class name of the other classes on board. Since numbers do not at the beginning of a CSS class are allowed and All classes without value in the array of class = "" be spent if We leglich remove the zero, we all figures in the early CSS class, and also set the class only if it is something out there. Line: 80 (substitute) $ Id = 'class = "'. $ Id. ' "'; by: if( is_numeric( $id{0} ) ) { $id = substr( $id, 1, strlen($id)-1 ); } $id = !empty($id) ? ' class="' . $id . '"' : ''; Gruß Ec
|
|
|
|
|
Logged
|
|
|
|
Fabio Pierrottet
Professional
Newbie
Offline
Posts: 13
|
cant fix this problem by put error reporting 0 on line 62 
|
|
|
|
|
Logged
|
|
|
|
|