vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Assistance required with upgrade to vb 2.2.8 (mainly global.php) (https://vborg.vbsupport.ru/showthread.php?t=44119)

SemperFidelis 09-30-2002 10:36 AM

Assistance required with upgrade to vb 2.2.8 (mainly global.php)
 
I have recently upgraded my dev copy of my forum to vb 2.2.8
And now I am getting this :
Quote:

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)
PHP Code:

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 :
PHP Code:

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


All times are GMT. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete