We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Template Globals seem undefined after install with site theme

Development and Programming

Adam Khan's avatar
Adam Khan
319 posts
15 years ago
Adam Khan's avatar Adam Khan

I’m creating a new site theme based on agile_records. All pages except for the homepage blank out until I go to Global Template Variables and hit Update. Then everything’s fine, even though I haven’t changed any values. All I can think of is that Enable Strict URLs is not actually set to No even though I set it to be so in the site theme’s default_content.php file, which I copied from agile_record’s:

/** -------------------------------------
/** Set theme
/** -------------------------------------*/

// Set the Member profile theme default, and Strict 404 settings
$this->config->update_site_prefs(array(
                                        'member_theme'    => 'basic_maths',
                                        'strict_urls'    => 'n',
                                        'site_404'        => 'index/404'
                                        ),
                                        1 // site id
                                );

Here I changed ‘strict_urls’ to ‘n’ from agile_records’ ‘y’. And the behavior isn’t the same as when Enable Strict URLs is set to Yes, when I am indeed taken to the 404 page.

Are these values set in the exp_sites table? I couldn’t find them anywhere else. The values in exp_sites are encoded, so I can’t see what they actually are. (Why are they encoded?)

       
Adam Khan's avatar
Adam Khan
319 posts
15 years ago
Adam Khan's avatar Adam Khan

This seems to be alright now. Not sure what’s different, but it’s working.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.