Elxis CMS Forum

Support => Technical support => Topic started by: timalsina on September 04, 2009, 13:19:53

Title: Media Manager - calling normal.js javascript but it does not exist
Post by: timalsina on September 04, 2009, 13:19:53
On Elxis Version 209.0 com_media on backend is calling for normal.js file at /administrator/components/com_media/js/normal.js but file does not exist.

Also, Media Manager is not well supported in Safari browser. Creating new folder does not work even after allowing popup option.
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: datahell on September 04, 2009, 14:07:16
This happens because is added as a browser that it does not support AJAX.
Open file: administrator/components/com_media/media.class.php

Go to line 78, add bellow:
return 1;

So at the end you will have this:
    function ajax_enabled() {
       return 1;
        $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
        $brwsr['ie6']     = (strpos($agent, 'msie 6.') !== false);

Tell me if the problem was solved.
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: timalsina on September 04, 2009, 14:22:24
That did the trick.  ;D

There is still an issue with Safari for JSCook menu. Every now and then I get this error like below while browsing items in backend. I did update JSCook Menu to v2.0.4, and still having this issue. So, instead of loading the backend horizontal dropdown menu, it throws this garbage. Firefox and Camino don't have this issue. I tried with Google Chrome Beta for OS X and I could replicate this on Chrome as well.

mg src="../includes/js/ThemeOffice/template.png" alt="" />','Login Screens','index2.php?option=com_templates&client=login',null,'Change admin template'], ['','Install','index2.php?option=com_installer&element=template&client=login',null,'Install Administrator Templates'], _cmSplit, ['','Module Positions','index2.php?option=com_templates&task=positions',null,'Template Positions'] ], ['','Trash Manager','index2.php?option=com_trash',null,'Manage trash'], ['','Users Manager',null,null,'Manage users', ['','Users','index2.php?option=com_users&task=view',null,'Users'], ['','Extra Fields','index2.php?option=com_users&task=extra',null,'Extra Fields'], ], ['','Access Manager','index2.php?option=com_access',null,'Access Manager'], ], _cmSplit, [null,'Menu',null,null,'Menu Management', ['','Menus Manager','index2.php?option=com_menumanager',null,'Menus Manager'], _cmSplit, ['','Destinations Menu','index2.php?option=com_menus&menutype=Destinations Menu',null,''], ['','mainmenu','index2.php?option=com_menus&menutype=mainmenu',null,''], ['','othermenu','index2.php?option=com_menus&menutype=othermenu',null,''], ['','systemmenu','index2.php?option=com_menus&menutype=systemmenu',null,''], ['','topmenu','index2.php?option=com_menus&menutype=topmenu',null,''], ['','usermenu','index2.php?option=com_menus&menutype=usermenu',null,''], ], _cmSplit, [null,'Content',null,null,'Content Management', ['','Content by Section',null,null,'Content Managers', ['
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: datahell on September 04, 2009, 19:24:28
Please administer elxis with firefox for now.
We will look the whole elxis administration for safari and chrome support for the 2009.1 elxis release.
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: timalsina on September 05, 2009, 00:22:05
Great! Looking forward to.

Datahell, Elxis 2009.0 is not compatible with PHP 5.3.0. Any plans on making 2009.1 PHP 5.3.0 compatible? I recently updated my OS to OS X 10.6 which came with PHP 5.3.0 (I am happy with 5.3.0 as it now supports GD and PDO_MySql). PHP 5.2.x in OS X was pain in the brain. I tried MAMP package, but Elxis does not run well on that either. So, I now rely on my remote server to do all my development work :( waste of bandwidth and unproductive.
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: datahell on September 05, 2009, 10:13:46
Yes, I know. Elxis 2009.1 will be released soon and it is compatible with PHP 5.3.
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: timalsina on September 05, 2009, 10:16:48
That's great. For the time being I am switching to Zend Server  ;D
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: datahell on September 05, 2009, 10:23:53
PHP 5.3 is too fresh and most web applications have problems with it. The problem derives from the fact that 2 very commonly used functions families, ereg and split, are considered as deprecated in PHP 5.3+ and will be totally removed in PHP 6.0. Even if Elxis 2009.1 is out I suggest you to use PHP 5.2 for a while as you might face the same problem with other applications too.
Title: Re: Media Manager - calling normal.js javascript but it does not exist
Post by: timalsina on September 05, 2009, 10:30:29
I use OS X 10.6 for my dev. work and the recent release of Snow Leopard came with bundled PHP 5.3. But, for the production server, I am using RedHat Enterprise box which is running PHP 5.2.x