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

[Solved] PHP Code block issue with RC5

Started by POTI, February 16, 2011, 03:22:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

POTI

Site www.canesforum.com
SMF Version 2.0 RC5
TP version 1.0 RC1
Forum Language English
Theme name Gamerz from Blocweb
Mods None new install
Errors
Whenever I add code to the PHP code block and attempt to save it I get the following error

Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

If I hit refresh it appear to actually save the code. It is a very annoying bug, any ideas what could be causing it?

Here is a little more info. If its a short block of code it works fine. I just added

$result = ssi_todaysEvents('array');if (!empty($result)){   foreach ($result as $event)      echo '<center><a href="' . $event['href'] . '">' . $event['date'] . ' : ' . $event['title'] . '</a></center>';}else      echo 'There are currently no events in the next 30 days.
';

And this saves and functions fine. Larger code gives the error above.

Lesmond

This an issue we had here at TP a few weeks ago, we had to ask the hosting to disabled mod_security on this site, you could ask them if it is turned on, and if they will turn it off for you.

POTI

Thanks ill give them a call today... its very annoying hehe

POTI

Yep that was it! Thanks, this looks like that has fixed a bunch of the other issues I was having as well.

Lesmond

Glad to have helped, I will mark this has solved.

This website is proudly hosted on Crocweb Cloud Website Hosting.