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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,019
  • Total Topics: 21,332
  • Online today: 1,062
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 784
  • Total: 784

error when using blocks

Started by sbarnes, March 28, 2006, 11:35:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sbarnes

I have tried a couple of php blocks and get the following error in the block itself:

Parse error: syntax error, unexpected '<' in /myurl/Sources/Load.php(1628) : eval()'d code(34) : eval()'d code on line 1

Any ideas??

G6Cad

When you add the php code in your blocks make sure you have removed the php tags.

<?php and ?> at the start and end of the codes

sbarnes

There were none, I cut and pasted a code from the clock/calender snippet and also inlcuded the file it reffered to.
Had tried other snippets previously with the same result. HTML and others appear to work fine under short tests.

G6Cad

The clock and calendar snippet should not be in a PHP block, its a java/html block for that :)

Xarcell

You need a echo... or put it in a HTML block.

sbarnes

Thanks everyone, realised I must have done something wrong when I tried some and they worked.
Worked out the thing of removing the <?php and ?> but didnt twig that the clock block was not really for the php block, sorry I hadnt updated you. Glad there was no probs with my site, just me being dumb. :idiot2:

This website is proudly hosted on Crocweb Cloud Website Hosting.