Advertisement:

Author Topic: Upgrade error given (Themes.php line 1018)  (Read 14693 times)

Zippo

  • Guest
Upgrade error given (Themes.php line 1018)
« 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?

Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: Upgrade error given (Themes.php line 1018)
« Reply #1 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@
Code: [Select]
preg_match('~background(?:-color)?:\s*([^;}\s]+)~is', $temp[1], $temp);
to:
Code: [Select]
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.
I'm only a half geek really...

Offline HRM

  • Jr. Member
  • **
  • Posts: 333
  • Gender: Male
  • Dutch & Belgium musicforum
    • Muziekforum.com
Re: Upgrade error given (Themes.php line 1018)
« Reply #2 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.
« Last Edit: March 14, 2004, 07:50:21 AM by Homerecording man »
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: Upgrade error given (Themes.php line 1018)
« Reply #3 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...
« Last Edit: March 14, 2004, 08:55:49 AM by Grudge »
I'm only a half geek really...

Offline HRM

  • Jr. Member
  • **
  • Posts: 333
  • Gender: Male
  • Dutch & Belgium musicforum
    • Muziekforum.com
Re: Upgrade error given (Themes.php line 1018)
« Reply #4 on: March 14, 2004, 09:36:45 AM »
Ok, tnx.
Ed
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Offline Winters

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Female
    • DykesVision. Reality-based.
Re: Upgrade error given (Themes.php line 1018)
« Reply #5 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


Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: Upgrade error given (Themes.php line 1018)
« Reply #6 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?
I'm only a half geek really...

Offline Winters

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Female
    • DykesVision. Reality-based.
Re: Upgrade error given (Themes.php line 1018)
« Reply #7 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

Offline Grudge

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,742
  • Gender: Male
  • Unofficial nuisance
Re: Upgrade error given (Themes.php line 1018)
« Reply #8 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
I'm only a half geek really...

Offline Winters

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Female
    • DykesVision. Reality-based.
Re: Upgrade error given (Themes.php line 1018)
« Reply #9 on: March 14, 2004, 02:18:08 PM »
Thanks, Grudge, that did the trick!