Loading...
 
Architecture / Installation

Architecture / Installation


Blank pages - error with ob_start() - Any ideas

posts: 31 United Kingdom

Hi All,

I've recently installed a new tiki (1.9.4) via Fantastico provided by my web-hosts IndicHosts.net. The installation went fine and I created a few pages and uploaded some images etc..

Recently I uploaded a handful of new images to the image gallery, then turned on the blog feature and Bang! eek My web site just displays blank pages. After reading the posts on this site regarding the Memory limit issue I upped my limit to 32M with an execution time of 360 using:

ini_set('memory_limit', '32M');
ini_set('max_execution_time', 360);

at the start of tiki-setup.php. I was also instructed to put a new php.ini file in each of my folders with the relevant settings.

Unfortunately this didn't make any difference, and I still receive blank pages.

I decided to look further into this by putting print("debug"); messages through the code. I found out that the php code appeared to be failing around a call to ob_start() in the smarty library (~line 1257 of Smarty.class.php in the fetch function)

I'm no php expert, so I'm at a loss as to what this means. Can anyone give me a few pointers as to what could cause this, and if there's a potential fix.

Also is there any way to read any error information in php? I'm used to using exception handlers in this situation, but it looks like php4 doesn't support them...

Any ideas appreciated...

Rik

As an aside, my webhosts said that the apache server would not need restarting after creating a new php.ini files within my folder structure. Does anyone know if that's the case?

posts: 31 United Kingdom

Shocker!

In a somewhat desparate attempt to do something, I renamed the _htaccess file in the root folder to .htaccess and Hey Presto! my site started working again.smile

confusedI've absolutely no idea why this might be the case - could anyone enlighten me?

happy,
rikrak


posts: 31 United Kingdom

ideaNow I see the light.

After furious debugging I realise that the error was not in ob_start at all. It turns out that all my print('debug'); messages were swallowed by the output buffer.

The problem I was experiencing was ultimately due to the folders in the templates_c being created as read-only. This appears to be a fairly well documented feature of tikiwiki installed on servers with php in safe-mode.

Ho hum, I should RTFM more often...smile

rikrak


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting