Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: Zippo on March 14, 2004, 06:09:19 AM

Title: Upgrade error given (Themes.php line 1018)
Post by: Zippo on March 14, 2004, 06:09:19 AM
Warning: Undefined offset: 1 in /home/sites/site99/web/body/Sources/Themes.php on line 1018

The template I am using is a custom made one.  I can see no errors in the actual forum (post upgrade), just wondered if it's a "don't worry one" ;)  any thoughts?
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Grudge on March 14, 2004, 07:02:07 AM
It shouldn't be a problem. I think you can stop it from happening by changing like 1018 from@

preg_match('~background(?:-color)?:\s*([^;}\s]+)~is', $temp[1], $temp);

to:

if (!empty($temp[1]))
preg_match('~background(?:-color)?:\s*([^;}\s]+)~is', $temp[1], $temp);


I think it may *actually* be a bug but I'm not going to change CVS until Unknown confirms/denys it.
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: HRM on March 14, 2004, 07:41:06 AM
Hi,

I had the same kind of message, but got it 3 times,

Quote
Converting the template...
Warning: Undefined offset: 1 in /home/sites/site92/web/forum/Sources/Themes.php on line 988

Warning: Undefined offset: 1 in /home/sites/site92/web/forum/Sources/Themes.php on line 1018

Warning: Undefined offset: 0 in /home/sites/site92/web/forum/Sources/Themes.php on line 1025

Warning: Undefined offset: 2 in /home/sites/site92/web/forum/Sources/Themes.php on line 1025
done.

Taking the forum out of maintenance mode... Successful

I went on and my forum seems to run properly. check: www.muziek4um.nl Only weird thing is that the characters in boards and specially in admin-center are much bigger then before. I'm using a custom template and did the 'converting' thing.

Ed.
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Grudge on March 14, 2004, 08:51:48 AM
It's nothing important. It's just not finding stuff it's looking for in the template. You can survive without it :)

EDIT: It looks like it's running the function and your template had a slightly dodgy style sheet, hence it struggled to convert it. I think the function needs some cleaning up as it should have just returned straight away...
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: HRM on March 14, 2004, 09:36:45 AM
Ok, tnx.
Ed
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Winters on March 14, 2004, 01:06:22 PM
Hi,

I upgraded a test mirror of my forum and got similar errors, but unfortunately resulting in a fatal error when trying to access the forum.

The errors upgrading (everything else successful):
Converting the template...
Notice: Undefined offset: 1 in /www/htdocs/yaddayad/forum/Sources/Themes.php on line 988

Notice: Undefined offset: 1 in /www/htdocs/yaddayad/forum/Sources/Themes.php on line 1018

Notice: Undefined offset: 0 in /www/htdocs/yaddayad/forum/Sources/Themes.php on line 1025

Notice: Undefined offset: 2 in /www/htdocs/yaddayad/forum/Sources/Themes.php on line 1025
done.


The error messageon the index.php:

Fatal error: Call to undefined function: reloadsettings() in /www/htdocs/yaddayad/forum/index.php on line 52

Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Grudge on March 14, 2004, 01:15:53 PM
Are you sure all your files are properly uploaded? That seems likely to be Load.php or Subs.php not being uploaded correctly, can you try and upload them again?
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Winters on March 14, 2004, 01:19:52 PM
I just dud, now I'm getting:
Warning: set_error_handler() expects argument 1, 'error_handler', to be a valid callback in /www/htdocs/yaddayad/forum/index.php on line 107

Fatal error: Call to undefined function: allowedto() in /www/htdocs/yaddayad/forum/Sources/Load.php on line 661
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Grudge on March 14, 2004, 01:34:31 PM
Now Security.php isn't there properly.

I recommend you reupload all your sources files as it seems there was a problem
Title: Re: Upgrade error given (Themes.php line 1018)
Post by: Winters on March 14, 2004, 02:18:08 PM
Thanks, Grudge, that did the trick!