Hi, I new here, but I often work with gantry.
I found some bug which occures on the
home.pl servers - one of the hosting providers in Poland.
This bug occures when ftp account is separated (pl: Włącz przekierowanie na podkatalog z separacją serwisu / Turn on redirect to subdirectory with separation).
I'm working now on Nuance template from Rocketheme (nuance-1.1-rocketlauncher_j33.zip).
On frontend I had problem with some urls of CSS and JS files. E.g. path like this:
/templates/rt_nuance/roksprocket/layouts/features/themes/scroller/scroller.css
looked like this:
/templatesrt_nuanceroksprocketlayoutsfeaturesthemesscrollerscroller.css
When I comment one line:
/libraries/rokcommon/RokCommon/PlatformInfo/AbstractPlatformInfo.php in line 43
$return_url_path = $instance_url_path . str_replace($instance_filesystem_path, '', $return_url_path);
it began to work properly.
(Of course it is solution only for this server's configuration)
The same problem I had in admin panel, in template configuration:
http://somedomain.pl/administrator/index.php?option=com_gantry&view=template&layout=edit&id=15There were the same problem with urls of CSS files.
When I comment linie:
$return_url_path = $instance_url_path . str_replace($instance_filesystem_path, '', $return_url_path);
in
/libraries/gantry/core/gantry.class.php in line 1634
it began to work properly.
In this case I had to change code in file
/administrator/includes/defines.php in line 20
because JPATH_ROOT was empty.
So I changed it to:
define('JPATH_ROOT', '/');
Everything what I've written here is very shorthand solution but for was suffiecient.
Maybe it will be helpful for someone else.
Przemek