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)

Steve Machol 01-12-2003 05:40 AM

The problem is in line 400 of sessions.php. What's on this line and what editor are you using?

Xenon 01-12-2003 12:08 PM

steve sorry i have to say, but you are wrong here.
line 400 of sessions.php calls vbdate() which has never been defined, because the functions.php is corrupted.

@dot:
replace this line:
PHP Code:

$buffer str_replace(""", "\[i][/i]""$buffer); 

with this:
PHP Code:

$buffer addslashes($buffer); 

this should fix the error.

dotagious 01-12-2003 03:28 PM

I don't have:

Code:

$buffer = str_replace(""", """, $buffer);

Instead, I have:

Code:

$buffer = str_replace(""", "\"", $buffer);
... and this is in functions.php right?

Xenon 01-12-2003 03:35 PM

np

you're welcome :)

dotagious 01-12-2003 03:46 PM

Quote:

Originally posted by Xenon
np

you're welcome :)

Look above you last post... we posted at the same time..LOL

Anywho.. if that is the line you mean, I replaced it as requested and I get a completely different error now. :( If I give full access to my server, control panel, etc. is there ANYWAY you could take a look. This has been going on forever and it's making me insane.

Steve Machol 01-12-2003 05:34 PM

Quote:

Originally posted by Xenon
steve sorry i have to say, but you are wrong here.
Not too quibble, bu I wasn't wrong. The problem was with line 400 of session.php. The fact that vbdate is actually defined in functions.php was overlooked, but there still could have been a problem with that line and the editor he's using.

Another thought came to me. Perhaps after editing these files, he's not uploading them in ASCII.

dotagious 01-12-2003 06:08 PM

I have tried several different editors.. so I don't think that is the problem. I have also edited the files directly from the server with no luck. I am also making sure to upload the files in ASCII format and make sure there is no blank space at the bottom. Every other edit I have done to every other file has been done with success. I'm positive it's something specific to functions.php, but can't figure out what. This has even happend when I tried to edit the same file on a former site of mine. Same host, same server, but different account. Same thing happened.

Xenon 01-12-2003 06:47 PM

Well functions.php works for all of us to edit, so the problem must be your editor or you upload it the wrong way, there's nothing we can do...
perhaps, the file is to long for your editor, try UltraEdit, that's what al lot of us use...

@Steve: touche :)

dotagious 01-12-2003 06:57 PM

Quote:

Originally posted by Steve Machol
The problem is in line 400 of sessions.php. What's on this line and what editor are you using?

This is line 400 in my sessions.php

Code:

$bbuserinfo['lastvisitdate'] = vbdate($dateformat." ".$timeformat,$bbuserinfo['lastvisit']);

dotagious 01-12-2003 06:59 PM

Quote:

Originally posted by Xenon
Well functions.php works for all of us to edit, so the problem must be your editor or you upload it the wrong way, there's nothing we can do...
perhaps, the file is to long for your editor, try UltraEdit, that's what al lot of us use...

@Steve: touche :)


Considering (a) no other file I?ve edited has this problem, (b) I?ve used several different editors and edited from the server directly, and (c) I?m transferring in the correct format (ASCII) and make sure there is no empty space at the bottom, it?s difficult to believe.


All times are GMT. The time now is 01:46 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.01052 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_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