Language Fallback

This forum is dedicated to the Joom!Fish 2.2.x core release. This release is dedicated to Joomla 1.5 code base and therefore we will not answer any questions related Joomla 2.5+ here.

Language Fallback

Postby 7eroe5 on Wed Apr 18, 2012 2:08 pm

Since I update to Joom!Fish Version V2.2.3 the language fallback dosn't funtion. Begore the update everuthing functioned very well. I did the fix as suggested in the post http://www.joomfish.net/forum/viewtopic.php?f=47&t=7434&p=38086&hilit=fallback#p29447. The result is a blank screen in the forntend of the website.
Any suggestions?
7eroe5
Newbee
 
Posts: 7
Joined: Wed Apr 18, 2012 1:58 pm

Re: Language Fallback

Postby quodo on Thu Apr 19, 2012 1:21 pm

A blank screen is often an error that isn't showing. Please enable debuggin and set error reporting to maximum and see if and what error message you're getting. Also please give your system details.

Enable Debug
Backend > Site > Global Configuration > System > Debug System = Yes

Set Error Reporting to Maximum
Backend > Site > Global Configuration > Server > Error Reporting = Maximum

System Details
Backend > Help > System Info > System Info
- Database Version: e.g. 5.1.33
- PHP Version: e.g 5.2.9
- Web Server an version: e.g Apache/2.2.11 or ISS
- Web Server Operating System: Windows (e.g. the (Win32) in the web server info
- Web Server to PHP interface: apache2handler
- Joomla! Version: Joomla! 1.5.26 --> make sure this is the latest version: http://www.joomla.org/download.html
- User Agent: Mozilla/5.0 (Windows) - the browser and the operating system of the user

Memory limit
Backend > Help > System Info > PHP Information > memory_limit (e.g. 64M)
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Language Fallback

Postby quodo on Thu Apr 19, 2012 3:01 pm

Second suggestion (just because I had that wrong):
The fallback language needs the code as given in the column Joomla File in the JoomFish Language Manager screen, e.g. nl-NL, en-GB, es-ES, etc.
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Language Fallback

Postby 7eroe5 on Mon Apr 23, 2012 11:05 am

I've updated to Joomla 1.5.26 and made the correction tot the joomfish.class.php file.
Still a white screen en no debug information. Some pages give information. Like this:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /home/webclients/roofsafety/public_html/components/com_joomfish/helpers/joomfish.class.php on line 320

the information on line 320:
JoomFish::translateListWithIDs( $fallbackrows, $fallbackids, $reference_table, $fallbacklanguage, $refTablePrimaryKey, $tableArray,$querySQL, false);

Any suggestions?
7eroe5
Newbee
 
Posts: 7
Joined: Wed Apr 18, 2012 1:58 pm

Re: Language Fallback

Postby quodo on Mon Apr 23, 2012 12:43 pm

Based on a search of this forum, two suggestions
- increase the Memory Limit
- check that each language available in JoomFish is indeed installed in Joomla and perhaps reinstall the languages in Joomla (although I don't understand how/why that could work (and why I closed that browser window not having copied the link to that info...))

Also, please give your System Details and Memory Limit information.
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Language Fallback

Postby 7eroe5 on Tue Apr 24, 2012 2:10 pm

PHP Built on: Linux mercury 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64
Database Version: 5.0.51a-24+lenny5-log
Database Collation: utf8_general_ci
PHP Version: 5.3.3-7+squeeze8
Web Server: Apache/2.2.16 (Debian)
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.26 Stable [ senu takaa ama busani ] 27-March-2012 18:00 GMT
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0

memory_limit 128M

Each language available in JoomFish is indeed installed in Joomla.
I didn't reinstall the languages yet. Can you confirm first that my system settings are ok?
7eroe5
Newbee
 
Posts: 7
Joined: Wed Apr 18, 2012 1:58 pm

Re: Language Fallback

Postby quodo on Tue Apr 24, 2012 2:28 pm

7eroe5 wrote:Can you confirm first that my system settings are ok?
With a similar system (JoomFish 2.2.3, Database 5.1.41, PHP 5.3.3, Apache on CentOS and Mozilla as a browser) things work ok for me. However, that's no garantee... My Memory limit is also the same, but that's a small database with hardly more contents than the sample content. I have no experience with increasing the memory limit, though you might try that.

Make sure you have a backup of your site/database before you try to reinstall things, especially if you feel uncomfortable doing so...
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Language Fallback

Postby 7eroe5 on Tue Apr 24, 2012 4:40 pm

My providor has set the memory_limit from 128M to 192M.
I also tried another template.
Some white pages and on some pages the message:
Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 523800 bytes) in /home/webclients/roofsafety/public_html/components/com_joomfish/helpers/joomfish.class.php on line 320

the code in the file components/com_joomfish/helpers/joomfish.class.php was:
Code: Select all
      // process fallback language
      $fallbacklanguage = false;
      $fallbackrows=array();
      $idarray = explode(",",$ids);
      $fallbackids=array();
      $allowfallback=false;
      if (isset($languages[$language]) && $languages[$language]->fallback_code!="") {
         $fallbacklanguage = $languages[$language]->fallback_code;
         if (!array_key_exists($fallbacklanguage, $languages)){
            $allowfallback=false;
         }
      }
      if (!$fallbacklanguage) {
         $allowfallback=false;
      }


and changed it to:
Code: Select all
      // process fallback language
      $fallbacklanguage = false;
      $fallbackrows=array();
      $idarray = explode(",",$ids);
      $fallbackids=array();
      $allowfallback=false;
      if (isset($languages[$language]) && $languages[$language]->fallback_code!="") {
         $fallbacklanguage = $languages[$language]->fallback_code;
         if (!array_key_exists($fallbacklanguage, $languages)){
            $allowfallback=false;
         }
               else{
                     $allowfallback = true;
              }         
      }
      if (!$fallbacklanguage) {
         $allowfallback=false;
      }


Any suggestions?
7eroe5
Newbee
 
Posts: 7
Joined: Wed Apr 18, 2012 1:58 pm

Re: Language Fallback

Postby 7eroe5 on Thu Apr 26, 2012 10:12 am

Hi quodo,
Did you see my newest post? The probleem is still unsolved.
Do you have any suggestions to solve this problem?
Or should a take one of the Joom!Fish Club Subscriptions tot solve this problem? Is the bronce subsription sufficient?
Thanks.
7eroe5
Newbee
 
Posts: 7
Joined: Wed Apr 18, 2012 1:58 pm

Re: Language Fallback

Postby quodo on Thu Apr 26, 2012 11:42 am

quodo wrote:[...] and perhaps reinstall the languages in Joomla (although I don't understand how/why that could work (and why I closed that browser window not having copied the link to that info...))
Did you try this as well?

Other than that I don't have any suggestions.

Perhaps one, but that's basically a double check: I applied the changes mentioned in the thread viewtopic.php?f=47&t=7434&p=38086#p29447 on my system and it works fine. I've attached the joomfish.class.php in a zip file, perhaps you could try that.
Attachments
joomfish.class.zip
(4.74 KiB) Downloaded 40 times
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Next

Return to Joom!Fish 2.2.x Core Extension

Who is online

Users browsing this forum: Bing [Bot] and 0 guests