SOLVED: $PREFS->ini(‘system_folder’, TRUE)
Posted: 13 March 2008 03:20 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
Joined  01-24-2006

Hey guys,

I am building a module and having a few people test it with fairly good results. However there is one thing that is cropping up every now and then.

My module uses some JS in the admin and I am including it in the head like so:

<.script type='text/javascript' charset='utf-8' src='/".$PREFS->ini('system_folder', TRUE)."modules/lg_module/scripts/jquery.ui-1.0/jquery.tablesorter.pack.js'>

The problem is that

$PREFS->ini('system_folder', TRUE)

is sometimes returning ‘system’ rather than the actual path to the system folder. What would be causing this?

Is there a reliable way to get the system folder into a url?

Cheers Leei

 Signature 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 13 March 2008 04:32 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
Joined  01-24-2006

Ok figured this one out….

For some reason the users path.php file has the correct path to the system folder but his config.php file still had:

$conf['system_folder'] = "system";

Something to check if things are not working as expected… smile

 Signature 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 14 March 2008 01:40 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29060
Joined  05-15-2004

Well, I was going to say, perhaps because he didn’t change the name grin

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 14 March 2008 01:45 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1306
Joined  01-24-2006

That was the issue… but I would have thought (unless he copied the file) that the install would have sorted that out smile

 Signature 

Newism - Newcastle Web Design & Development


NSM Publish Plus - Collaborative workflow and live entry previews
LG Better Meta - SEO Meta & XML Sitemap Generator
LG Polls
LG .htaccess Generator
20+ EE addons

Profile
 
 
Posted: 18 July 2008 03:29 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  47
Joined  05-29-2008

I just encountered this problem with Brandon Kelly’s Playa extension. Maybe the wording during the install should be changed to “full path to your system folder” instead of “name of system folder” as it is now.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 119992 Total Logged-in Users: 110
Total Topics: 126119 Total Anonymous Users: 64
Total Replies: 663435 Total Guests: 453
Total Posts: 789554    
Members ( View Memberlist )
Newest Members:  tnelistimolthofrjfrancodfng1983Allen22GurindergilesbShinkenLorBackL1progmas
Active Members:    Alex HiroshiAlexis Moore-JonesAndreiCurelaruandysmithatiosisbcwBill the GrueBlair Lblg002bridesignBruce2005bushtitcc000001ccarterCeliaGchaasChiefAlchemistChris ClarkeChris NewtonchutchinsoncinemachineCrucialDavid Haighdesignerhandbagsdfng1983dhayesDrexDavisDustin HitzEdwin FloresemillingtonEric MillerErik ReaganfensterbabyferroconcreteFingerPaintForrest AndersonGareth Daviesgesturestudiogregory17guru24housingworksiainillustrationdaninformedexpatsITWYJaapMjaasumJAM1515james BrownJörg GudehusjeramiahjmorinjoemoJohnGribbenjoshinfJustin LongkazzaakcdunstanKerim SatirliKurt DeutscherlaurentPlhurlbutliquilifelukeadamislukemcrmadamovMark BowenMasonHmelissajcMichael HahnnarrationneostructuralistNevin LyneNico Smitpab514Pascal KrietePauli HuhtiniemiPeter SommerfeldPhilip ZaenglepicsselPierre FroelicherramonekalsawregistryRichard DeGrandpreRichard WigginsrippeRobb OttenhoffruthhSam SullivanSean McDevittSimonLove2009smidoidstdroviaSteve FairhurststoomgeSue CrockersusansanSVA Interaction DesignTony OravettriomtsublewskiVishal A.vobtoaviWaielweimarmediaWes Bakerwheyyasminazackmorgan