Random Image and ExpressionEngine Random Image and ExpressionEngine
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Random Image and ExpressionEngine

Started by medic119, May 19, 2004, 05:07:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

medic119

I am using the SSI.php file to include a random image on my site. (I don't have any private albums)
I recently moved to ExpressionEngine which is a completely PHP based Dynamically driven CMS.

My problem comes when doing the includes for the site.  EE allows you to define processes to be run per page wither on generation (Input) or after EE PHP has been parsed (Output)

I have included the sssi.php file in an "input" option template and it seems to parse in just fine.  I don't receive any errors.  The problems occur when I try to use any of the SSI commands.

I created a second template and tried both the Input and output parsing options, without success.  It seems issi.php terminates all php in the page anytime a call is made "Fatal error: Call to undefined function: cpg_thumb() in /home/user/public_html/core.functions.php(519) : eval()'d code on line 5"

I also posted this over on the EE forums, but I don't think its an EE problem as I have parsed other add-in PHP.
Does anyone have any ideas on how to fix this short of making a EE "module" or plugin (which would be cool).
[size=12]Doc, NREMT-Paramedic[/size]
Far From Perfect
"So Shut Up, Live, Travel, Adventure, Bless, And Don't Be Sorry." - Jack Kerouac

Joachim Müller

I'm not sure what to say: I don't know the cms you're talking about, but apparently the function defined in the inlcude at some stage isn't there when called...
As a workaround I suggest you put the code of the file ssi.php into your custom script area (instead of just including it). This will create some code overhead, but shouldn't be dramatic.
You have to understand that ssi.php goes unsupported because it's outdated.

GauGau

medic119

Yea, I know its unsuppored.
Thanks for the hints though.  Maybe I can get it working somehow.

Any replacement for ssi yet?
[size=12]Doc, NREMT-Paramedic[/size]
Far From Perfect
"So Shut Up, Live, Travel, Adventure, Bless, And Don't Be Sorry." - Jack Kerouac

Tarique Sani

SANIsoft PHP applications for E Biz