[solved] xajax.js

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
macko
Forum Members
Forum Members
Posts: 21
Joined: Fri Oct 17, 2008 11:28 pm

[solved] xajax.js

Post by macko »

***this is to do with apache and restrictions placed by the host

a mod_security related error. adding:


  SecFilterEngine Off
  SecFilterScanPOST Off


to .htaccess file solved it until host relaxes security ***

I get the following pop up javascript error when using  >content>>pages in the admin section

Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?
URL: ../lib/xajax/xajax_js/xajax.js

I've checked the file and uploaded it again.

Server info is:

Apache version   1.3.41 (Unix)
PHP version   5.2.5
MySQL version   4.1.22-standard

thanks
Last edited by macko on Sat Nov 29, 2008 12:13 am, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: xajax.js

Post by Dee »

If you check the source of that page in your browser it contains a line like this:
Open that URL and make sure it opens the Javascript file (by making sure the file is in the correct location lib/xajax/xajax_js, permissions are set correctly, etc.).

Regards,
D
Last edited by Anonymous on Fri Nov 28, 2008 1:25 pm, edited 1 time in total.
macko
Forum Members
Forum Members
Posts: 21
Joined: Fri Oct 17, 2008 11:28 pm

Re: xajax.js

Post by macko »

thanks for the response

I checked the source of the page and the script path is




the xajax.js file is present when i follow through the path to it.  When i search for the file in a browser i get the error :

"An appropriate representation of the requested resource /lib/xajax/xajax_js/xajax.js could not be found on this server."

the lib directory is in the public_html or root level. 
Do I need to add the full website path to this somehow?  ie: http://www.mywebsite.com/lib/xajax....etc
I presume that the ../ searches for the file from root level.  I have a feeling this is some kind of path problem as I have the same error when trying to view the image manager.

Any help greatly appreciated
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: xajax.js

Post by Dee »

You're using CMS Made Simple-1.4.1?

Strange it doesn't show the absolute URL on your system. I think the URL is created directly from the url settings in config.php - make sure the the config['root_url'] is correct:

Code: Select all

$config['root_url'] = 'http://www.mywebsite.com';
Regards,
D
macko
Forum Members
Forum Members
Posts: 21
Joined: Fri Oct 17, 2008 11:28 pm

Re: xajax.js

Post by macko »

hi,

yes its 1.4.1
the root url of the site is correct in the config file.

thanks
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: xajax.js

Post by Dee »

As far as I can see the code is generated in admin/listcontent.php and uses config['root_url'] indeed... line 46:

Code: Select all

$headtext = $xajax->getJavascript($config['root_url'] . '/lib/xajax')."\n";
The only things I can imagine causing this is modified core files or files that didn't get properly overwritten during an upgrade.

Regards,
D
macko
Forum Members
Forum Members
Posts: 21
Joined: Fri Oct 17, 2008 11:28 pm

Re: xajax.js

Post by macko »

Hi again Dee,

this is a first time install and the error appeared straight away ie before i'd even looked at any files. The admin section works ok, I just get the annoying popup (which I suppose I could disable) and also my image manager won't appear.  I suspect the 2 are related.

Under system information I have -

PHP Open Basedir (open_basedir):

/home/mywebcont/:/usr/lib/php:/usr/local/lib/php:/tmp Caution
Open basedir restrictions are in effect. You may have difficulty with some addon functionality with this restriction

Do you know if this might be causing problems?

Again many thanks for taking time to respond.
replytomk3

Re: [solved] xajax.js

Post by replytomk3 »

This has started to appear for me on 1and1. Adding those lines to .htaccess crashes the website. If someone else has the same issue, please share the solution.

UPDATE:
Modifying permissions and adding those lines to .htaccess do not work.

Clearing both browser and cmsms cache took care of the problem.
Locked

Return to “[locked] Installation, Setup and Upgrade”