FC suddenly invisible in FF or 500 error in chrome

More
11 years 8 months ago #33867 by conticreative
We have a site on a rackspace server that has been working just fine for the past 2 months. Suddenly yesterday morning only the few pages without flexicontent are showing up. Pages with Flexicontent are empty in FF or in Chrome they return a 500 error.

The link is here: staging.cortina-systems.com/
To see the error simply click on any link in the main menu save for "Home".

Strangely, we were not working on the site when it started behaving this way and the server guys told me they did nothing on the server either.

The error we get from the logs is:
Code:
mod_fcgid: stderr: PHP Fatal error: Cannot access empty property in [snip]/web/components/com_flexicontent/classes/flexicontent.helper.php on line 2158, ref erer: https://staging.cortina-systems.com/


Line 2158 is this line here:
Code:
$language_tag = $languages->$user_lang->code;
Contained in this function:
Code:
function loadTemplateLanguageFile( $tmplname='default', $view='' ) { // Check that template name was given $tmplname = empty($tmplname) ? 'default' : $tmplname; // This is normally component/module/plugin name, we could use 'category', 'items', etc to have a view specific language file // e.g. en/en.category.ini, but this is an overkill and make result into duplication of strings ... better all in one file $extension = ''; // JRequest::get('view'); // Current language, we decided to use LL-CC (language-country) format mapping SEF shortcode, e.g. 'en' to 'en-GB' $user_lang = flexicontent_html::getUserCurrentLang(); $languages = FLEXIUtilities::getLanguages($hash='shortcode'); $language_tag = $languages->$user_lang->code; // We will use template folder as BASE of language files instead of joomla's language folder // Since FLEXIcontent templates are meant to be user-editable it makes sense to place language files inside them $base_dir = JPATH_COMPONENT_SITE.DS.'templates'.DS.$tmplname; // Final use joomla's API to load our template's language files -- (load english template language file then override with current language file) JFactory::getLanguage()->load($extension, $base_dir, 'en-GB', $reload=true); // Fallback to english language template file JFactory::getLanguage()->load($extension, $base_dir, $language_tag, $reload=true); // User's current language template file }

This is the error I get in Chrome:
Code:
The website encountered an error while retrieving https://staging.cortina-systems.com/index.php?option=com_flexicontent&view=item&id=1&Itemid=117. It may be down for maintenance or configured incorrectly.

I am really hoping someone can help us because after all this work it's frustrating to end up without a website.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #33868 by conticreative
Well, I found the culprit. One of my guys had built a custom component, but he forgot to add an english.ini file. When he installed it Joomla basically said "I'll let you install it as is but I don't like it"

Later he went to uninstall the component and he got an error that the englis.ini file could not be deleted because it wasn't found.

Apparently at that point, every single .ini file in the joomla front end (the administrator/language files were fine) was deleted. The directory was empty. I uploaded from my backup and the site is now happily working away.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #33869 by ggppdk
Thanks for feedback, (my initial thought was that you install some new language, and that current item was of that language)

Also, i see that you have an old version of FLEXIcontent,
Final version is finished (will make a public build later today) and we will make announcement in JED after a few days of more testing


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #33876 by conticreative
Thank you for the alert. One consequence of trying to restore the site is that now I have several backups installed on other servers.

I am looking forward to installing the new version but at the same time I am a bit apprehensive that it may break some of the work we have done so far. I will test it first on some of my backups.

I'll be happy to test it before the release if that helps you in any way.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.517 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline