Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Possible problem using javascript / mootools on my sites ?

Hi

I've been setting up a MacMini Server to host our websites - the MacMini and SL Server is awesome! Really like it 🙂

Unfortunately, I have problem that I haven't found the solution for and it's my hope that some of you can help me get some steps further.

Our sites are done in WordPress and Joomla CMS. The wordpress-sites works just fine, but the Joomlasites, which use Javascript and Mootools library, doesn't show the javascript-parts on screen. I've check on multiple browsers and ISP's so I guess it's not just a local problem.

Perhaps, take a look at one of the sites ( http://eventmagasinet.dk ) with the errorconsole turned on in Safari, and you'll see the errors (I guess) tells me why I don't see the site rendered as it should.

Is there something I need to turn on/enable or something I can do to solve this?

Ps. For here's the errors I get in errorconsole:

body#ff-iridium.f-default.style1.full.iehandlehtml
/components/com_k2/js/k2.js:83TypeError: Result of expression 'window.addEvent' [undefined] is not a function.
TypeError: Result of expression 'Element.extend' [undefined] is not a function.
/plugins/system/rokbox/themes/light/rokbox-config.js:38TypeError: Result of expression 'window.addEvent' [undefined] is not a function.
ReferenceError: Can't find variable: Class
/templates/rt iridiumj15/js/rokutils.js:14TypeError: Result of expression 'window.addEvent' [undefined] is not a function.
TypeError: Result of expression 'window.addEvent' [undefined] is not a function.
ReferenceError: Can't find variable: Class
http://eventmagasinet.dk/:76TypeError: Result of expression 'window.addEvent' [undefined] is not a function.

Message was edited by: KLP29

Message was edited by: KLP29

MacPro, Mac OS X (10.6.2), MacPro 2x30" + Nikon D2x, Aperture, Photoshop CS3, Protools HD, C24, 3g iPhone

Posted on Nov 29, 2009 2:58 AM

Reply
9 replies

Nov 29, 2009 3:23 AM in response to KLP29

From reading http://forum.joomla.org/viewtopic.php?f=543&t=448505&p=1946886#p1946886 it seems that Joomla CMS doesn't quite like the PHP5.3, that I have on my SL Server installation and some people refer to downgrading.

I don't like the idea of downgrading to an old version and would like to stay on the same "level" as what Apple suggests, but is this really the way to go?

Nov 29, 2009 6:26 AM in response to KLP29

You're left with a choice to wade into the code and fix this in Joomla (or pay or somebody for same), move to a different CMS that has more recent php support, or install a local php 5.2.* version.

This question is also [posted|http://forum.joomla.org/viewtopic.php?f=543&p=1946886] over in the (cited) Joomla forums, and there is a (separate) [discussion of an experimental fix|http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tra cker itemid=17150] that's been marked as closed and checked in; there may be a fix in a bleeding-edge version.

Probably best to continue discussions of Joomla over there. Downgrades of php are discussed around the net; there is (was?) a good discussion of rebuilding php (with extensions) over at [topicdesk.com|http://osx.topicdesk.com]; I've not specifically seen a downgrade-rebuild sequence posted, though.

Nov 30, 2009 5:55 PM in response to KLP29

I have the exact same issue on a Mac mini running Server (10.6.2), however, I did an equally fresh install on my MacPro using Parallels and Joomla works fine (1.5.15). I verified that everything is identical, from site setup to permissions, php (standard Apple factory), yet it works on the Parallels install but not on the mini. Anybody have an idea??

Nov 30, 2009 8:09 PM in response to kaif

There are various and sundry discussions of generic Joomla issues with php 5.3; that'd be my first target for investigation. Various of the php 5.3 reports appear to manifest as you've described, too.

Why your two boxes (differing by processor and by VM) show divergent behavior, that too will require some digging with phpinfo() in both boxes as well as the usual comparisons of the code and the extensions and the php code involved; it's certainly (insert 'hammerlock grasp of the obvious' warning here) unexpected. I know you state they're identical, but clearly they're not behaving similarly, and that (unfortunately) means digging around. And have you confirmed no old browser caches are present?

Dec 1, 2009 10:07 AM in response to KLP29

I love the wording "unexpected". Yes, I did the verification that it isn't a browser cache issue. Also, the phpinfo() looks identical. Here's a new bit of new information - even though in ServerAdmin the sites on both machines are set up identically, I did get it to work on the mini after disabling all of the apple wiki/blog, etc services (they are enabled on the VM installed where it works regardless). So I guess I could declare my issue fixed, however, having such a discrepancy on two virgin SL Server installs (10.6.2) by processor/VM is in deed "unexpected."

Dec 7, 2009 8:39 AM in response to kaif

Kaif,

Ran into "unexpected" behaviour on my fresh MacMini with SL Server install.

When installing Joomla in the root, the automatic installation fails at step 4 (database - you can't press next).
When doing a manual install, all menus disappear.

Found the culprit; it is de media directory. If you have webservices enabled, then this directory is reserved for those services. All Joomla JS files are rendered inactive. When disabling those services both the automatic install and the menus work.

When installing Joomla in a subdirectory you do ot run into any of these problems as you bypass the root/media directory.

My challenge: I want to have Joomla in the root AND I want to use Mail and WebDav services.

Who has found the work media-directory work around?

Coen

Dec 8, 2009 7:29 AM in response to Coen Jeukens

Use Apache virtual hosting? I'd not expect to have two completely different hosts sharing one host path. You may be able to get this stuff going out of a subdirectory underneath the main level, but (given you're tying into the Apple web tools and web environment) here, I'd not be entirely certain this would continue to work going forward, if/when you get this going. With a virtual host for the Apple stuff and a virtual host for the content management stuff, the two environments are entirely separate.

Possible problem using javascript / mootools on my sites ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.