• Welcome to Simple Machines Community Forum. Please login or sign up.

Unable to load the main template

Started by sektor, February 08, 2007, 08:06:45 AM

Previous topic - Next topic

sektor

My custom theme is based on the "classic" theme.

maybe this has sth to do with it?

Just trying to help :)

thanx

Orstio

Quoteaction,featuresettings2

Right there is your problem.  Joomla is dropping the query string after the Itemid to lower case.

Is this Joomla from joomla.org, or from a third party language-specific site?

sektor

my joomla is from official from joomla.org

.htaccess is the one i found here on this forum, which works with SMF

Orstio

And you have no third-party SEF component installed?

If you look in your includes folder, there is a file named sef.php.  Can you paste here any lines with "strtolower" in them?

sektor

Quote from: Orstio on February 08, 2007, 07:57:20 PM
And you have no third-party SEF component installed?

If you look in your includes folder, there is a file named sef.php.  Can you paste here any lines with "strtolower" in them?

Nope, no third-party SEF installed.

Sure:

if ($dir !== '.' && $dir !== '..' && is_dir($path .'/'. $dir) && strtolower($dir) !== 'cvs' && strtolower($dir) !== '.svn') {


if( (!empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr( $mosConfig_live_site, 0, 8 ) != 'https://' ) {


Orstio

Hmmm....

Somewhere, the query string is being dropped to lower case.

So, the easiest fix is to change it in SMF's index.php:

'featuresettings2' => array('ModSettings.php', 'ModifyFeatureSettings2'),


make sure that "featuresettings2" is all lower case.

sektor

February 08, 2007, 08:14:39 PM #26 Last Edit: February 08, 2007, 08:17:35 PM by al0000
hmm...that's how the line is already, i didn't change it, here it is:


'featuresettings2' => array('ModSettings.php', 'ModifyFeatureSettings2'),


sektor

Also, this does not happen only when editing admin options.

It happens on other locations, for instance on the VisualWarning mod.

I must find out where the code is changed to lower case. (and why only to me?)

sektor

Quote from: al0000 on February 08, 2007, 08:25:58 PM
Also, this does not happen only when editing admin options.

It happens on other locations, for instance on the VisualWarning mod.

I must find out where the code is changed to lower case. (and why only to me?)

Sorry my mistake.

Visualwarning seems to work just fine

sektor

Orstio,

I think found the problem

I have two mods installed:

Custom Profile Fields
Visual Warning Mod

Both of them have edited the SMF's featuresettings file. I know becase i see their options there.

Orstio

OK, is this in your bridge smf.php, on line 230:

$nqsefurl = substr($nonsefurl, 0, strpos($nonsefurl, 'option')) . preg_replace('/(\;)([^=#]*)([#"])/', '$1$2=$2$3', substr($nonsefurl, strpos($nonsefurl, 'option'), strlen($nonsefurl)));

sektor

Yes....this is a copy/paste from my smf.php

$nqsefurl = substr($nonsefurl, 0, strpos($nonsefurl, 'option')) . preg_replace('/(\;)([^=#]*)([#"])/', '$1$2=$2$3', substr($nonsefurl, strpos($nonsefurl, 'option'), strlen($nonsefurl)));

Orstio

What happens if you change it to this?

$nqsefurl = substr($nonsefurl, 0, strpos($nonsefurl, 'option')) . preg_replace('/(\;)([^=#]*)([\;#"])/', '$1$2=$2$3', substr($nonsefurl, strpos($nonsefurl, 'option'), strlen($nonsefurl)));

sektor


Orstio

Yeah, I was wondering if it might break something else?


sektor


sektor

Everything seems to be working fine.

I will however post here, if sth comes up

Thank you.

Orstio


Kindred

interesting...   as a side note, I have the custom profile fields and visual warning mods installed ib two forums, without SEF and the sites work perfectly...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: