vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Functions.php (https://vborg.vbsupport.ru/showthread.php?t=47601)

dotagious 01-11-2003 07:54 AM

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.

dotagious 01-11-2003 03:39 PM

ttt

Steve Machol 01-11-2003 03:48 PM

What text editor are you using? It sounds like the editor is causing the problem.

dotagious 01-11-2003 05:12 PM

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.

dotagious 01-11-2003 05:28 PM

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.

Steve Machol 01-11-2003 05:42 PM

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.

dotagious 01-11-2003 07:53 PM

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.

dotagious 01-12-2003 02:51 AM

ttt

Steve Machol 01-12-2003 03:51 AM

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. :)

dotagious 01-12-2003 05:25 AM

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);


All times are GMT. The time now is 12:34 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.01389 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete