TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

[Block] Custom Page

Started by Thurnok, August 09, 2006, 08:13:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

keith021773

Hey all..    I just recently upgraded to PHP5.   Don't know if that has caused this, but it's the only thing that I can remember that I have changed..   

Here is the error I am getting.

Parse error: syntax error, unexpected T_VARIABLE in /home/.mariska/keith021773/daddyplace.com/Sources/Load.php(1753) : eval()'d code(231) : eval()'d code on line 139

IchBin

And you're getting this error because of this block code?

keith021773

not exactly for sure..    it worked fine before I went to PHP5 from PHP4..   Just checked this morning and was getting this error when I clicked on custom page..

IchBin

I'd suggest checking the contents of your code. Make sure you haven't lost some code bit by comparing it to the original code. Try a whole new code block if you need to.

keith021773

yeah..   When I first noticed it I searched for this thread and recopied all of the code and deleted the old code..  Same error.    Interesting, isn't it?   LOL

Thurnok

Was the line number the same when you got the error again after recopying the code?

When did you first put the Custom Page block on your site?  Because there have been changes as recent as 5 days ago, and definately should have been a different line number if your original code was older than Jan 21st.  If that is the case, it is probably something else that displays on the same page.

Current code for Custom Page should not have that error at that line number unless you do not have a good copy of the code.  That type of error is usually indicative of a missing semi-colon ( ; ) or brace ( } ) missing somewhere above the error line.  This would be irrespective of the version of php you have, however.

keith021773

Just today I copied and pasted your code from the first of this thread.    I will do it again just to make sure.

keith021773

Update...     Just recopied the code again and the same error message..      I honestly don't know what it could be..    But I sincerely appreciate you guys in helping me.

Thurnok

Ok, but you didn't quite answer my question.  You state "it worked fine before..."  My question is, how long ago did you originally put in the Custom Page code?  And, "before" you recopied the code in again the first time, was the line number in the error msg the same or not?

If you had a previous version, and the line number was 139, and you just put in the current version and the error is the same line number, it is most likely something else.  Code above that line has been added, and therefore, "if" you had a previous version originally, it almost assuredly would have changed line numbers when you "went to the first post and recopied the code" if it were an issue in the Custom Page block.

Where did you place the Custom Page code?  Article, Centerblock, etc.?  What else (blocks/articles) display on the same page as the Custom Page block?  If you simply disable the Custom Page block, does the error go away?

keith021773

I'm not saying it's the code for the custom block at all.   Please don't get me wrong.....

The orginal code worked for mths, no problem at all.     I was just asking if going from PHP4 to PHP5 could give this type of error..   I plan on going back to php4 to see if it starts working again.

This website is proudly hosted on Crocweb Cloud Website Hosting.