Customizing SMF > SMF Coding Discussion

SSI & SMF 2.xxx something different ?

(1/2) > >>

jayc:
Is there anything different in 2.0 when attempting to work with SSI?

I try to put up a new page with require SSI at the top, and when I browse to it or to the existing ssi_examples.php  in the SMF directory I get a whole buncha undefined statements.

This is a partial listing there are actually a lot more.

Notice: Undefined index: html_headers in /home/hobbit/public_html/SMF/Sources/Load.php on line 1821
Notice: Undefined index: name in /home/hobbit/public_html/SMF/Sources/Subs-Portal.php on line 1407
Notice: Undefined index: template_dirs in /home/hobbit/public_html/SMF/Sources/Load.php on line 1839
Warning: Invalid argument supplied for foreach() in /home/hobbit/public_html/SMF/Sources/Load.php on line 1839
Notice: Undefined index: default_theme_dir in /home/hobbit/public_html/SMF/Sources/Load.php on line 1863
Notice: Undefined index: theme_dir in /home/hobbit/public_html/SMF/Sources/Subs-Portal.php on line 730

Since the ssi_examples.php came with the major upgrade it seems to me that I must have a setting wrong some place, I am kinda clueless at this point what my next steps should be. Any pointers appreciated

jayr

IchBin™:
It's more than likely something wrong in your page, or something like a mod causing the problem.

jayc:

--- Quote from: IchBin™ on February 25, 2012, 01:46:54 PM ---It's more than likely something wrong in your page, or something like a mod causing the problem.

--- End quote ---

Since the ssi_examples.php came with the SMF distro I am using I am pretty sure that there is nothing wrong with the page.

I can try uninstalling all the mods and see if that makes a difference.

All those undefined statements/warnings make me think that I should be loading/calling something before ssi.php.

da Hobbit

IchBin™:
You said you are putting SSI into the page. That is the page I'm referring to. Not the examples page. There's no need to call something before SSI.php in your file. If those variables are undefined, something else is going on inside your page, or inside SMF (which is likely from a mod install causing problems.)

jayc:

--- Quote from: IchBin™ on February 25, 2012, 06:07:31 PM ---You said you are putting SSI into the page. That is the page I'm referring to. Not the examples page. There's no need to call something before SSI.php in your file. If those variables are undefined, something else is going on inside your page, or inside SMF (which is likely from a mod install causing problems.)

--- End quote ---

Text always leads to confusion, I created a file called newPage3.php in my SMF directory, its contents are:
<?php
require("/home/hobbit/public_html/SMF/SSI.php");
?>

You can check out what this page brings up at http://www.hobbitsworld.com/SMF/newPage3.php [nofollow]

I will try tuning down the mods one at a time, but it is a little hard to understand how a mod could be causing problems of this nature without many people being aware of it. SSI seems to be popular, and I have pretty much minimum mods installed.

Thanks for your time

Navigation

[0] Message Index

[#] Next page

Go to full version