Error the xajax javascript component could not be included perhaps the url is incorrect

Chat with fellow EECMS users in the 'Error: the xajax Javascript component could not be included' ExpressionEngine community discussion forum thread.
  • Home
  • Forums
  • Archive
  • General Discussion

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

  • #1 /

    Oct 03, 2012 9:21am

    Hi all,

    Man, I have tested this problem in every way and with every browser and configuration I can think of — and no luck. I could really use some guidance on this if possible. Any help would be very much appreciated.

    My problem is with including the xajax_core.js file in my application. I’m working in a fairly complex CodeIgniter framework, but in order to try to isolate this problem I created a simple test page and am still getting:

    Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?
    URL: res/xajax_js/xajax_core.js

    This happens if I set the $xajax->configure(‘javascript URI’, ‘res/’) variable to the absolute path, the relative path, the http path, etc. I’ve checked permissions, moved the folder and even tested that I could open the file in a browser. No luck.

    I’m running Apache 2.2.15 and PHP 5.3.3 in case that might matter. Also using CI 2.1.2 and xajax 0.6

    Here is my test page (taken from another post in this forum which seemed to deal with the same issue):

    <?php
    /**
    * 2012-01-19 Ed
    * Simple xajax demo page
    *
    */
    
    include 'system/libraries/xajax/xajax_core/xajax.php';
    $xajax = new xajax();
    $xajax->configure('javascript URI', 'res/');
    
    function favoris($user,$fav,$add)
    {
        //let's say there's a sql request here. OK
        if($add) //if we add
        {
            $text='Added to your favorites.';
        }
        else
        {
            $text='Removed from your favorites.';
        }    
        
        $objResponse = new xajaxResponse();
        $objResponse->assign('favoris2', 'innerHTML', $text); //So we put $text in <div id="favoris"></div> right?
       
        return $objResponse;
    }
    
    $xajax->register(XAJAX_FUNCTION,'favoris');
    $xajax->processRequest();
    $xajaxjs = $xajax->getJavascript(); //Loads the js into the variable
    ?>
    
    <!DOCTYPE html>
    <html>
    <head>
    <title>Xajax Sample</title>
    <?php echo $xajaxjs; ?>
    </head>
    <body>
    <div id="favoris">
    <button>Add Favorite</button>
    <button>Remove Favorite</button>
    </div>
    <div id="favoris2"></div>
    </body>
    </html>

    The script does find the file ‘xajax.php’ but then fails to located the xajax_js folder. 

    Please help!

    Luke

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases

melvint9

Forum Members
Forum Members
Posts: 12
Joined: Thu Jun 28, 2012 3:02 am

xajax Javascript component error

I’m getting the following error:

Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?
URL: «http://localhost/icebiz/lib/xajax/xajax … ax_core.js

I’m using «xampp» to run CMS Made simple…

What file do I edit to ensure I have the correct path so the xajax Javascript component can be included….

My «config.php»

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config[‘dbms’] = ‘mysqli’;
$config[‘db_hostname’] = ‘localhost’;
$config[‘db_username’] = »;
$config[‘db_password’] = »;
$config[‘db_name’] = ‘icebiz’;
$config[‘db_prefix’] = ‘ice_’;
$config[‘timezone’] = ‘US/Eastern’;
?>

Last edited by Dr.CSS on Tue Aug 28, 2012 1:13 am, edited 1 time in total.

Reason: Please use double quotes on fake links so they aren’t clickable…

mrenigma

Forum Members
Forum Members
Posts: 48
Joined: Fri Aug 05, 2011 3:43 pm
Location: London, United Kingdom

Re: xajax Javascript component error

Post

by mrenigma » Mon Aug 27, 2012 11:39 pm

The URL looks correct, have you checked your permissions are correct?

It might be a permissions error, also since you are using XAMPP it is also really easy to look at the PHP and Apache logs to see what errors they are showing. It might help you debug it a bit easier.

~ Life is like water, every movement you make changes the way it flows ~

melvint9

Forum Members
Forum Members
Posts: 12
Joined: Thu Jun 28, 2012 3:02 am

Re: xajax Javascript component error

Post

by melvint9 » Fri Aug 31, 2012 11:03 pm

I checked all error logs and I found many statements like this one:
GET /cms/lib/xajax/xajax_js/xajax_core.js HTTP/1.1″ 200 39857 «http://localhost/cms/admin/listcontent. … _=78ed4bba» «Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1»

Any idea what’s going on. This error is preventing my TinyMCE from functioning correctly in the «content page» window… also, I can’t download any new modules thru «module manager»… The path that’s displaying is correct…

mrenigma

Forum Members
Forum Members
Posts: 48
Joined: Fri Aug 05, 2011 3:43 pm
Location: London, United Kingdom

Re: xajax Javascript component error

Post

by mrenigma » Sat Sep 01, 2012 8:40 pm

That is the call to the server from a client browser, the message can be broken down to the following:

Get file (xajax_core.js) through HTTP, the 200 refers to the response code and 200 means OK. The 39857 relates to the returned file size minus headers while the rest refers to the response and the clients browser type.

When looking through the logs did you find this in your access_log or your error_log?

It still sounds to me like a permissions issue, you could also try setting TinyMCE’s config file to static in the advanced settings.

Have you look at the System Information menu option? It is found under Site Admin on CMSMS 1.11 and it should show up any issues.

~ Life is like water, every movement you make changes the way it flows ~

Странная ошибка

Тема в разделе ‘Архив: всё остальное’, создана пользователем .~KALIF~., 4 Март 2014.

Уважаемый/ая гость/я нашего форума!

Вы можете принимать активное участие в жизни форума только, если сначала зайдёте на Ваш игровой аккаунт и уже оттуда перейдёте на наш форум. Если у Вас всё ещё нет игрового аккаунта, пожалуйста, зарегистрируйтесь как новый пользователь в нашей игре. Мы будем рады приветствовать Вас на нашем форуме!
„Перейти по ссылке“

Статус темы:

Закрыта.
  1. ID 88991739
    Ник .~KALIF~.
    У меня проблема с входом в игру вообщем при загрузке страници появляется маленькое окно с такой ошибкой (Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?). После нажатия «ОК» главная страница отоброжается некорректно, в игру войти вообще невозможно!

  2. А на другие сайты можете зайти? Почитайте: http://enable-javascript.com/ru/

  3. На другие сайты могу. 8 часов мучаюсь переустановил всё в плоть до опирационки пробывал разные браузеры ошибка та же выскакивает. Эта (http://enable-javascript.com/ru/) ссылка не доступна.

  4. Прошу прщения по ссылке страница не доступна.

  5. Ну если можете посещать другие сайты, то поищите: Как включить JavaScript в вашем веб-браузере.

  6. Малюська это я уже всё проверил, всё в порядке «Разрешить JavaScript на всех сайтах (рекомендуется)» галочка стоит. ЯваСкрипт тамошнего Аякса пытается вызвать некий компонент — отдельно лежащий скрипт. А его нету — ссылка неверна. Скорее всего некий вебпрограммист Криворучко сделал его динамически генерируемым. Он криво кэшируется и при следующих загрузках ссылка пролетает мимо. Проблема на сервере.

  7. Не помогло к сожилению. Java и JavaScript — между этими языками нет ничего общего.
    Язык программирования JavaScript, разработанный в компании Netscape, Inc., не входит в состав платформы Java.
    JavaScript не применяется для создания апплетов или автономных приложений. Сегодня чаще всего JavaScript находится внутри документов HTML и обеспечивает уровень взаимодействия с веб-страницами, которого невозможно достичь с помощью простых документов HTML.
    У кого-то на каких-то проксях провайдера или локалок он криво кэшируется и при следующих загрузках ссылка пролетает мимо. Потом кэш обновляется и всё восстанавливается.
    Раньше эта проблема решалась нажатием «ОК» в откывшемся окне и простой перезагрузкой обозревателя. В данном случии очень долго, буду ждать раз ни чего конкретного Вы посоветывать не можете.

    Последний раз редактировалось: 4 Март 2014

  8. у меня такая же беда перепробовал все браузеры, и сносил их и снова устанавливал, чистил кеш и куки, операционку менял, включал и отключал JavaScript и Java переустанавливал,и на саппорт писал ( там ответили что с аком все впорядке), а у меня ошибка как вылазила так и вылезает. Причем до перезагруза сервера все работало нормально
    Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?
    URL:http: //darkorbit-22.level3.bpcdn.net/js/xajax_js/xajax_core.js?
    ID 97034330
    Ник Ŧ∑₦Ђ_ҲǼǾŠǼ

    Последний раз редактировалось: 4 Март 2014

  9. полностью ошибка выглядит так:
    (Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?
    URL: http://darkorbit-22.Level3.bpcdn.net/js/xajax_js/xajax_core.js?__cv=7d18ea9cdeb1f1b391cff64cb943d300 ) ???

  10. да калиф, именно так и выглядит

  11. Все сайты с флеш анимациями работают. Что только не пробовал, и чистил браузеры (кэш, куки) и на ошибки проверял и на вирусы, делал откат, даже винду переустанавливал-все бесполезно. Ошибка возникает НА ВСЕХ браузерах (именно этого сайта-игры).Очевидно, что сбой идет с сервера игры, страница не успевает загрузится (белый экран, отсутствие стилей, всплывающее окно с ошибкой и т.д.).
    Неужели администраторы форума не могут сообщить вебпрограмистам об этой не рабочей ссылке (http://darkorbit-22.Level3.bpcdn.net/js/xajax_js/xajax_core.js?__cv=7d18ea9cdeb1f1b391cff64cb943d300)? Я никак не могу повлиять на работоспособность игры и железо, кривоустоновленое ПО, и какой либо конфликт программ тут не при чём!

  12. Вчера была та же проблема-сегодня все работает

  13. Да пока на сервере не исправят — так и будет у кого-то возникать эта проблема, у кого-то нет.

  14. Проблемы (ошибка) в браузерах «JavaScript» появлется по непонятной причине и исчезает спонтанно через энное количество время. Комп и програмное обиспечение ни как не связано с появлением этой ошибки.
    Тему можно закрывать.

Статус темы:

Закрыта.

Поделиться этой страницей


DarkOrbit RU

Понравилась статья? Поделить с друзьями:
  • Error the vc runtime redistributable package was not installed successfully setup cannot continue
  • Error the value of systemcoreclock is not usable in a constant expression
  • Error the username or password you entered is incorrect lost your password перевести
  • Error the tag image in 0 points to a nonexistent file screenshot jpg
  • Error the system cannot find the path specified торрент