permission denied error, line 1 Char 2899

HI All

This is a great product. I’ve installed it on two other non-profit websites, and it does exactly what we want it to.

However, I’ve just gone to install it on a 3rd Joomla website, and it just won’t go - gets the below error. I’ve tried uninstalling and reinstalling, have uninstalled and then installed v2.3, but same error.

Is there something basic here I am missing? I’ve got everything at default, and it all looks the same as the other two websites (eg www.wsbc.org.nz) but no go.

Thanks in advance for any help.
+++++++++++++++++++++++++++++++++++++

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbFXTV5/5.9.1.14019)
Timestamp: Tue, 15 Mar 2011 06:24:36 UTC

Message: Permission denied
Line: 1
Char: 2899
Code: 0
URI: sunbeamcarclubofnewzealand.org.n … heduler.js

Most probably it is caused by different domain names in joomla configuration and the actual url, by which site is accesed.
Double check both and be sure that they are equal

Thanks for that. I saw that on another site, but thought it didn’t apply as I haven’t changed that. Just checking though - do you mean in configuration.php?

Sorry guys - a deliberate bump…

Funny I’ve just noticed that it’s fine as long as I don’t enter any events, then as soon as I do, I get a pop-up with no text and can’t see the event I just added…

Hello,

Can you please provide link to the page with scheduler?

Best regards,
Ilya

Thanks - it’s www.sunbeamcarclubofnewzealand.org.nz

Interestingly I get a pop up error box in Firefox, but not in IE…

Cheers for any help with this.

Hello,

Edit yourjoomla/components/com_scheduler/codebase/dhtmlxSchedulerConfigurator.php file (create backup copy first!):

protected function replaceHostInURL($url) { $url_parsed = parse_url($url); $host = $_SERVER['SERVER_NAME']; echo $host; die(); $url = preg_replace("/".preg_quote($url_parsed['host'])."/", $host, $url, 1); return $url; }
Open pages:
sunbeamcarclubofnewzealand.o … p/calendar
sunbeamcarclubofnewzealand.org.n … p/calendar

In first case you should see
sunbeamcarclubofnewzealand.org.nz
In second case
sunbeamcarclubofnewzealand.org.nz

Is this correct?
After that restore your original dhtmlxSchedulerConfigurator.php file.

Best regards,
Ilya

Thanks for that Ilya

For both links, I get only sunbeamcarclubofnewzealand.org.nz
Have restored original file.

Cheers
Fred

Hello,

Are you using mod_rewrite?
Currently don’t have any other ideas why when requesting www.site.com we have ‘site.com’ in $_SERVER[‘SERVER_NAME’] variable.

Best regards,
Ilya

Thanks for the help.

In that configurator php file I have:

protected function replaceHostInURL($url) {
	$url_parsed = parse_url($url);
	$host = $_SERVER['SERVER_NAME'];
	$url = preg_replace("/".preg_quote($url_parsed['host'])."/", $host, $url, 1);
	return $url;

Are you saying I should have a url in ‘SERVER_NAME’ ?

Sorry to bump this up, but a response would be excellent.

Cheers

You should have requested page URL in $_SERVER[‘SERVER_NAME’] variable.
This URL is used later on the client side to make Ajax request.
URL of ajax request must be the same as page URL, otherwise you have error “Permission denied.”

Thanks - so you mean replace $_SERVER[‘SERVER_NAME’] with $_SERVER[SUNBEAMCARCLUBOFNEWZEALAND.ORG.NZ] ??

Thanks again!

Interesting…I looked at the configurator.php file on another site, and it doesn’t even contain any of the :
protected function replaceHostInURL($url) {
$url_parsed = parse_url($url);
$host = $_SERVER[‘SERVER_NAME’];
$url = preg_replace("/".preg_quote($url_parsed[‘host’])."/", $host, $url, 1);
return $url;

that appears in this site’s configurator.php file…

Method replaceHostInURL was added certanly. So this method could be absent in old-fashioned versions.

Is there anywhere I can download an old version and try that out?

dhtmlxScheduler plugin v2.0 you can find here:
extensions.joomla.org/extensions … dars/10363