Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 2:47 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
Posted: Mon Sep 17, 2007 4:08 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Sep 05, 2007 2:56 am
Posts: 6
Let me say right up front, I'm new to Joomla and PHP.  We are running Joomla 1.5RC2, but have never run a previous version of Joomla (so we have no experience with Joomla 1.0 to compare our current situation with).

While trying to get the Sitemaps working, I downloaded an installed Joomla! Extension "Dynamic gSitemap"  (http://extensions.joomla.org/component/ ... /Itemid,35)

It didn't exactly work for us right out of the box. Every attempt to use it resulted in an error trying to contact the MySql database server.  I liked the architecture of the extension enough to invest a bunch of hours trying to get it to work on our site.  After much struggling, I discovered the problem. It would appear to that gSitemap extension requires all the Joomla config variables to be of the format $mosConfig_.  If I understand this correctly, this is the old format, left over from the split away from Mambo.

The new Joomla configuration.php format does not seem to use this format, but instead relys on a JConfig class. I'm not exactly sure how to use the new class but it looks like a better system (I assume php classes are namespace managers, designed to reduce global namespace pollution).

So, I started to hard code the mosConfig_ values I needed in the Sitemap Extension.  After doing so, the sitemap system started working.  :)

But before I moved on, I decided to do a global GREP of the source in Joomla to see if other modules make reference to mosConfig_ variables as well.  I discovered dozens of modules that also seem to require mosConfig_ format as well.  As near as I could tell, they were extensions we had installed into our Joomla! system and were not part of the Core Joomla system.

I've therefore moved the mosConfig_ variables into the configuration.php file to hopefully help these other modules function as well.

Clearly there's something I don't understand, and I was hoping someone could help shed some light on what's going on.  Can someone help set me straight on why these variables were required?  Feel free to point me to a Forum or RTFM link.  I tried to find such links myself, but wasn't able to.

Sorry for such a 101 question, but I'm trying to get my footing and Googling my questions didn't seem to help.  I'm positing the Migrating/Upgrading topic because I assume this is something todo with a difference between Joomla 1.0 and 1.5.  If I've posted in the wrong forum, I'd appreciate a pointer to the right place.

Thanks Much
Jim C.


Top
  E-mail  
 
Posted: Mon Sep 17, 2007 10:11 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 7:27 am
Posts: 93
I am not sure is this going to help you but try turning on legacy mode in global configuration. This mode allows you to run modules,components etc... written for older version of Joomla. Although it is not recommended.

Also do not forget to remove modules you have modified and install fresh ones.

_________________
http://www.allmightyweb.com
Custom modules, components anad joomla templates


Top
   
 
Posted: Mon Sep 17, 2007 10:27 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Sep 05, 2007 2:56 am
Posts: 6
Thanks for the follow-up.

I neglected to mention that Legacy mode is enabled. It didn't make a difference either way.


Top
  E-mail  
 
Posted: Mon Sep 17, 2007 10:44 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 7:27 am
Posts: 93
Have you removed component you have modified before and installed fresh one.

_________________
http://www.allmightyweb.com
Custom modules, components anad joomla templates


Top
   
 
Posted: Mon Sep 17, 2007 10:47 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Sep 05, 2007 2:56 am
Posts: 6
I haven't modified any components.  This was a fresh install of Joomla! 1.52RC2

Thanks
Jim C.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Quick reply

 



Who is online

Users browsing this forum: foreverlost and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group