PDA

View Full Version : Assistance required with upgrade to vb 2.2.8 (mainly global.php)


SemperFidelis
09-30-2002, 10:36 AM
I have recently upgraded my dev copy of my forum to vb 2.2.8
And now I am getting this :

Parse error: parse error in /home/devsite/public_html/global.php on line 371

Fatal error: Call to undefined function: getpermissions() in /home/devsite/public_html/index.php on line 10


Similar error messages to the above appear for other pages as well.

I have used araxis merge to compare these 3 versions of global.php :
- original 2.2.6
- my edited 2.2.6
- original 2.2.8

And Im not having much luck
:(

The only way I can get things to work correctly is by using a fresh, un-hacked 2.2.8 version of global.php

Can someone - if they get time - compare the 3 attached files and see what i need to do to my hacked 226 global.php upgraded to 228 correctly ?

Thanks in advance

g-force2k2
09-30-2002, 11:06 AM
v-net it seems that you have made a simple parse error when hacking the file... could be a missing '}' somewhere within your syntax... and that should be wahts causing the error in index.php

hope that helps... regards...

g-force2k2

NTLDR
09-30-2002, 11:17 AM
Check line 371 on global.php, like g-force2k2 said you will propably just be missing a character like ; { }

SemperFidelis
10-01-2002, 03:22 AM
This is whats on line 371 (same on all 3 versions mentioned above)

368 checkipban();
369 $logincode=makelogincode();
370
371 ?>


Also, did the zip file I attached get removed ?
And if so how come ?
If I did something wrong sorry it wont happen again (well as long as you tll what I did !)
:)

SemperFidelis
10-01-2002, 03:43 AM
And here is what line 10 on index.php contains :

08 require('./global.php');
09
10 $permissions=getpermissions();
11 if (!$permissions['canview']) {
12 show_nopermission();
13 }
14



This same error is also occuring for
- member.php
- showgroups.php

I think the error must be in global.php
Can anyone confirm this ?

g-force2k2
10-01-2002, 03:50 AM
v-net it is a global error as i stated in my post above the error can be anywhere in global.php it just states the last line because that's where it was unfinished... and yes it effects all of your files... your file was probably removed because its against vbulletin.org rules to post any full vb files on the forum... regards...

g-force2k2

SemperFidelis
10-01-2002, 08:17 AM
Cheers g-force2k
All is sorted
:D