Are there any other people who've got issues with Firefox and Opera in 4.7
We've got it with clean installs and with the converted themes we've made.
it looks great in all browsers except FF and opera.
any tips or solutions?
thanks in advance!
I see the problem. <link href="http://localheroes.vergetest.nl\/data/themes/abrasive/style.css" rel="stylesheet" type="text/css" media="screen" />
Its \/ symbols inslide this link.
Is it a windows serwer?
It's a windows server indeed.
Where can i find the call to the stylesheet?
in the theme.php i can only find : <?php theme_meta(); ?>
thanks in advance!
There you can see that this function is in functions.site.php at line 89.
But you are intrested in SITE_URL variable.
And you can find this variable in variables.all.php
if(substr($directory, -1) == '/') $directory = substr($directory, 0, strlen($directory) - 1); define('SITE_URL', $protocol.'://'.$_SERVER['HTTP_HOST'].$directory);
I think you can try to change / into \ in substr function in first line ot above code.
that line doesn't occur in variables.all.php is that correct?
at least not in 4.7
Right - i post you code of pluck 4.7 with some bug fixes.
In clear 4.7 you have only
//Some constants. define('SITE_URL', 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']));
So you can change it into
//Site URL constant $protocol = 'http'; if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off') $protocol .= 's'; $directory = dirname($_SERVER['PHP_SELF']); if(substr($directory, -1) == '/') $directory = substr($directory, 0, strlen($directory) - 1); define('SITE_URL', $protocol.'://'.$_SERVER['HTTP_HOST'].$directory);
This fix bug #830504 and bug #832650.
Test it and tell mi if this will fix your problem or you will need to change / into \ as I post before.
I changed the / to \ on this line :
if(substr($directory, -1) == '/')
but then i get an error : PHP Parse error: syntax error, unexpected T_STRING in E:\vergetest.nl\wwwroot\localheroes\data\inc\variables.all.php on line 47
Of course you will get en error. Silly me.
You will have to change it into \/
if(substr($directory, -1) == '\/')
Some char ( like . or / ) are restricted, so if we want to use them, we have to add \ before that char.
This time no error! but no solution either
any other idea's
Grrr. First post was good. You have \ char in link and you dont want this char. So you want to remove it.
if(substr($directory, -1) == '\\')
Nice! Fixed. Should i do this for all pluck installations we've got?