Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.

TOPIC: Syntax Error

Re:Syntax Error 17 years, 7 months ago #1921

  • jirka
Hello,

ok, I am really glad you managed to solve that, however neither I can image what .htaccess error might cause what was described here. However, IE sometimes acts strange.

As regards your licencing question, if it is the same site, with same content, just with different language version and country domains, it is okay to run them with 1 license only.

Best regards,
ARTIO Support Team

Re:Syntax Error 17 years, 7 months ago #1931

Hi,

I seem to have resolved the problem I am having, for those who are using RocketTheme templates and get this error, please do the following:

Open your templates index.php file and search for slimbox.js and you should find something like this:

<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/slimbox.js"></script>
All you need to do, is completely remove that line, and the error should no longer appear.

Thanks, Andrew.

Re:Syntax Error 17 years, 7 months ago #1932

ok

So the culprit seems to be the following line in the htaccess file:

RewriteRule (.*) index.php

Enabling this line whether JoomSEF is installed or not causes my site to show the error. I don't know why so if anyone does know then please post the answer here!

What is interesting is that with the htaccess file as it should be with JoomSEF installed, JoomSEF itself seems to work fine (apart from the error) except when I look for the adware code in the source it isn't there. I haven't modified any of the component's files. So it looks like the error I have encountered DOES seem to interfere with how JoomSEF works.

Strange but true...

Without this issue fixed or at least knowing why it happens I am reluctant to purchase the commercial version. And I really want it to work because it seems like a great extension!

Re:Syntax Error 17 years, 7 months ago #1935

  • jirka
Hi,

could you post the whole .htaccess file of yours please so we can check it? Please use the "code" tags to do so.
Also please, make a note about your webserver version. Also knowing what IE you have might be interesting.

As regards the sponsors links text, this certainly has no connection to it.

You say that even when showing the script error, it works fine. So I believe that is more some IE issue, probably with connection to some JS script or something that you are using. (as e.g. Andrew wrote above)

Best regards,
ARTIO Support Team<br><br>Post edited by: jirka, at: 2007/04/24 17:48

Re:Syntax Error 17 years, 7 months ago #1937

Hi,

James, also are you using a module called Slimbox by any chance, if so, as I posted before, remove the .js call in the header of the index.php, this doesn't need to be hardcoded, cause Joomla will call it anyway due to the module being used on the site.

I believe IE is kicking up the fuss because 2 duplicate .js are being used.

Thanks, Andrew.

Re:Syntax Error 17 years, 7 months ago #1938

hi Jiří,

htaccess used the same as the example in the component with one exception (the base):

 
##
# @version $Id: htaccess.txt 2368 2006-02-14 17:40:02Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

 
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow. Lines that can be uncommented
# (and thus used) have only one #. Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section. You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented. If you are running your Joomla! from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line. For example, if your Joomla! is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################

 
## Can be commented out if causes errors, see notes above.
Options FollowSymLinks
 
#
# mod_rewrite in use

RewriteEngine On
 
 
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

RewriteBase /
 
 
########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section

 
########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section
 


The following line is the only difference between core SEF and third party SEF:

 
RewriteRule (.*) index.php
 


IE version: 7.0.5730.11
Linux i686
PHP 4.4.4
DB 5.0.26
Apache 1.3.33
Joomla 1.0.11

The sponsors text just seemed strange - you would assume if JoomSEF was working then the entries would have been in the source code. Oh well.

Hi Andrew...

I don't have a slimbox implemetation but I due use Highslide JS. I can also confirm that with the following core SEF line activated (and the 3rd party one commented out) everything works fine (i.e. there are no existing js conflicts).

 
RewriteRule ^(content/|component/) index.php
 


I guess there might be some JS relying on the line in the htaccess that we're discussing? I know very little about how htaccess works so I don't know unfortunately.

Thanks all
James
Přihlášení uživatele Prázdný