Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Assistance required with upgrade to vb 2.2.8 (mainly global.php) Details »»
Assistance required with upgrade to vb 2.2.8 (mainly global.php)
Version: , by SemperFidelis SemperFidelis is offline
Developer Last Online: Feb 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-30-2002 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-30-2002, 11:06 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 09-30-2002, 11:17 AM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check line 371 on global.php, like g-force2k2 said you will propably just be missing a character like ; { }
Reply With Quote
  #4  
Old 10-01-2002, 03:22 AM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !)
Reply With Quote
  #5  
Old 10-01-2002, 03:43 AM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #6  
Old 10-01-2002, 03:50 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-01-2002, 08:17 AM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers g-force2k
All is sorted
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03929 seconds
  • Memory Usage 2,260KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete