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,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 681
  • Total: 681

Update to latest version broke all PHP blocks and Recent Articles block!

Started by DistantJ, October 19, 2010, 07:28:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DistantJ

Ok, I had a whole bunch of great PHP blocks on my site, and they were integral to it, but since updating (uninstalling old version, installing new version) to the latest version, every PHP block just gives me this:

Parse error: syntax error, unexpected T_VARIABLE in /home/distantj/hooplanet.co.uk/Sources/Load.php(2136) : eval()'d code(112) : eval()'d code on line 112

And the Recent Articles block also gives me a blank block which stops the rest of the page underneath it from loading.


Link to my site: http://www.hooplanet.co.uk
SMF version: 3.0 RC3
TP version: 1.0 RC1
Theme name and version: Custom, based on Mobile_alt 2.03
Browser Name and Version: Safari 5.0.2 (tested on on all Mac compatible browsers)
Mods installed:
Karma Buttons 1.1
Tapatalk SMF 2.0 RC3 Plugin 1.2.0
Activity in Profile 1.1 5.
nCode Image Resizer 1.3.1
Ultimate Profile 0.9.1
InLine Attachments 1.06 Beta
ENotify 2.0
PM Attachments 1.5
TinyPortal 1.101
Inline Hover Spoiler 1.5
Aeva Media 1.2
Related Error messages:
Parse error: syntax error, unexpected T_VARIABLE in /home/distantj/hooplanet.co.uk/Sources/Load.php(2136) : eval()'d code(112) : eval()'d code on line 112

DistantJ

FIXED: Just noticed that in uninstalling and reinstalling, it seems to have replaced every { in my PHP codes with « and every } with » which, oddly, in HTML, aren't even the codes for { and }, heh...

Anyway, replacing them makes PHP blocks work again, however the Recent Articles still breaks the whole page.

ZarPrime

Quote from: DistantJ on October 19, 2010, 07:28:18 PM
Ok, I had a whole bunch of great PHP blocks on my site, and they were integral to it, but since updating (uninstalling old version, installing new version) to the latest version, every PHP block just gives me this:

Parse error: syntax error, unexpected T_VARIABLE in /home/distantj/hooplanet.co.uk/Sources/Load.php(2136) : eval()'d code(112) : eval()'d code on line 112

And the Recent Articles block also gives me a blank block which stops the rest of the page underneath it from loading.

DistantJ,

This is most likely because the code in your php blocks was written to work with SMF 1.1.XX and an earlier version of TinyPortal.  Nearly every php block that worked fine with the previous versions has to be updated for the new versions.  Can you attach the code from one of your php blocks to your next post so that we can test it on one of our test sites?  Please use code tags (#) when posting your code.

As for the blank Recent Articles block and the rest of the page not showing, it is likely the same problem as above.  The errant code in a previous block is keeping everything from the Recent Articles block down from rendering properly.  You can fix this temporarily until the php code blocks are fixed by turning off the php blocks until you or us have updated the block code snippets in your php blocks.

ZarPrime

Edit:  I don't see a "Recent Articles" block on your site.  Is it set to not show to Guests?

DistantJ

Thanks for your reply, as you can see above I noticed that in upgrading some symbols were changed to codes, which I've fixed and now those PHP blocks work, however the Recent Articles block I'm using is the built in one, I just got to Article/Download features, and select Recently Written articles, and it breaks.

ZarPrime

OK, well then, I must say that I am somewhat confused.  As far as I know, there is no such thing as a built in "Recent Articles" block.  You aren't talking about the built in "Recent Topics" block are you?

ZarPrime


ZarPrime

Aha, OK, I get it. ::)

OK, I just tested this and that block type seems to be broken for the moment.  I will have to put this in the BugTracker and let Bloc take a look at it.  Thanks for reporting it.  I can't give you an ETA on when there might be a fix at this time.

ZarPrime

IchBin

That article type works just fine for me on my site. What is wrong with it?

ZarPrime

@Ichbin

The "Article/Download functions" type block doesn't work here with RC1.  I just created a left test block here to test it, though it's only visible to Admins.  However, I turned it back off so if you want to look at it, you'll need to turn it back on.  It's set to show in all areas I believe.  It's in the left panel, 2nd block from the top.  It definitely breaks the layout.

ZP

IchBin

Hmm... weird. Wonder why mine works and this one doens't. Maybe my files didn't get properly updated last time I upgraded.

This website is proudly hosted on Crocweb Cloud Website Hosting.