View Full Version : Problem with newreply.php (Part 2)
joelrotunda85
02-09-2003, 03:47 PM
Hey,
I can't access the other thread, I tried to upload my newreply.php and it won't let me access that thread anymore. If one of the mods want to delete it, be my guest.
Basically, I tried what Erwin suggested and I am still getting the same error message:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/virtual/site98/fst/var/www/html/testvb/newreply.php(48) : eval()'d code on line 1
Anymore ideas?
Xenon
02-09-2003, 03:48 PM
nevertheless you are not allowed to upload your newreply.php.
(i delete the other thread.)
joelrotunda85
02-09-2003, 03:49 PM
Sorry Xenon, I didn't know that :ermm:.
Erwin
02-09-2003, 07:53 PM
You've got white space in that file... are you sure there are NO spaces at the beginning and end of file? And the same message comes up with an unhacked newreply.php?
joelrotunda85
02-09-2003, 10:06 PM
Erwin,
I have downloaded a brand new version off of vbulletin.com and uploaded it directly from the unzipped folder and I am still getting the same error message.
Can I send you my newreply.php folder?
amykhar
02-09-2003, 10:26 PM
Check your templates. Revert them to the base code. (Any that have to do with posting the reply) This is just a hunch, but it couldn't hurt to try.
Erwin
02-09-2003, 10:29 PM
Nothing to do with templates. It's a PHP error, and HTML can't give you that.
I'm quite sure that it's the way you are uploading it. Try a different FTP program. You should not get the same error if you are sure you are uploading an unhacked, virgin newreply.php.
joelrotunda85
02-09-2003, 10:30 PM
All the ones having to do with newreply are in their original state.
I am not sure if I mentioned this before but I am only having a problem with this when I try to click the "quote" button from a post. Everything else is working fine.
joelrotunda85
02-09-2003, 10:31 PM
Erwin,
Not sure if my recent reply changes anything, so I will wait for some instruction. Also I have used CuteFTP for 2 years now and never had a problem, why would it only be happening with newreply.php?
Erwin
02-09-2003, 10:35 PM
So newreply works, but quote doesn't? Have you done anything to your functions.php? Try reverting that and see if the problem disappears.
joelrotunda85
02-09-2003, 10:40 PM
I have extensively hacked admin/functions.php with all the things I have installed; however, I uploaded a fresh copy of admin/functions.php and still getting the same error, possibly another file?
Also, new reply is working flawlessly it is just when I click "quote" do I get an error message.
Thanks for your help Erwin!
Erwin
02-09-2003, 11:18 PM
Is it only with quoting a particular post? Or all posts? Or posts by a particular member? Also, try uploading an unhacked forums/global.php and see if that fixes it.
joelrotunda85
02-10-2003, 12:41 AM
Erwin,
I will try that in a few minutes. This may help: www.joelrotunda.org/hacks.htm
Thanks again.
joelrotunda85
02-10-2003, 01:00 AM
Erwin,
You won't believe this but it actually was a template. As I was compiling my hack list (above) I stumbled across something at vbulletintemplates.com whereas someone was having the same problem. Needless to say, I followed the links that were provided to fix it and voila, it was gone! YAY! :D
Here is the thread: http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=2870
I appreciate your help Erwin, you defintely led me in some good directions :).
Erwin
02-10-2003, 01:25 AM
There you go... I have to eat my words! :) Very unusual for a template to do this, unless it's the phpinclude template, but I guess it's possible if the template is calling the wrong function of a PHP file. :)
Erwin
02-10-2003, 08:38 PM
Okay, I looked into this in more detail, and was able to replicate the error myself.
It's the quotereply template - I guess you tried to add the Date and Time to the quote box. You can do that - just move the variables to the BEGINNING of the line ie. before the poster name and after [i]. That will stop the error. It's to do with the way it is parsed.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.