Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2003, 07:54 AM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Functions.php

I’m running vBulletin 2.2.9 and have tried to modify my functions.php file a hundred times. It doesn’t seem to matter what hack I’m trying to modify it for, it will produce a parse error and make my site unavailable.

I have tried this for a required block vbportal of code and for a custom photo gallery hack. On both occasion I’ve rechecked my edits 100 times and know they are being modified correctly. I have used a text editor, and also even tried directly editing the files from the server. In all cases, a parse error is generated.

Does anyone else run into this problem or have a solution for me?

I have made sure the edits are correct, made sure there is no blank space at the bottom, etc. and nothing seems to work. This has been going on for at least two months now and nothing seems to resolve this issue.
Reply With Quote
  #2  
Old 01-11-2003, 03:39 PM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ttt
Reply With Quote
  #3  
Old 01-11-2003, 03:48 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What text editor are you using? It sounds like the editor is causing the problem.
Reply With Quote
  #4  
Old 01-11-2003, 05:12 PM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AEdiX

.... but I have also tried to make the changes right from the server, and the same thing happens. My errors always refer to sessions.php, which I've replaced with the default just to make sure. I have also modified a dozen other files with the same editor and it went fine.
Reply With Quote
  #5  
Old 01-11-2003, 05:28 PM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm only running 4 hacks.

1. Thread Preview
2. Quick Reply
3. vBPortal
4. Photopost Hack

Out of the 4 hacks, vbportal requires an edit to functions.php for the topics option to work... and my custom photopost hacks requires a small modification. Neither modification wants to work.
Reply With Quote
  #6  
Old 01-11-2003, 05:42 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A parse error means there's something wrong with either the PHP file or the template. It would help if you posted the complete error message.
Reply With Quote
  #7  
Old 01-11-2003, 07:53 PM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn... I'm at work

I made a copy of it somewhere, I'll try to find it and post it.

It?s obviously something wrong with the PHP file, hence the error message, but can?t figure out what. Especially considering the fact I have tried several times to apply the edits to the original file.
Reply With Quote
  #8  
Old 01-12-2003, 02:51 AM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ttt
Reply With Quote
  #9  
Old 01-12-2003, 03:51 AM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what 'ttt' is supposed to mean but if you're waiting for my help I still need to see the actual error message.
Reply With Quote
  #10  
Old 01-12-2003, 05:25 AM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ttt= to the top

LOL

Ok, I just tried it again using a THIRD text editor and still get the same damn error.

Parse error: parse error in /home/offtopic/public_html/forums/admin/functions.php on line 827

Fatal error: Call to undefined function: vbdate() in /home/offtopic/public_html/forums/admin/sessions.php on line 400


This is line 827 AFTER the new code is added:

Code:
$buffer = str_replace(""", "\"", $buffer);
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 02:32 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.04398 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete