translate Joomgallery Pictures: blank page + module issues

Please use this forum for all development issues related to 3rd Party extensions or own development
Forum rules
Before posting, see the developer documentation and don't forget to search the forums.

Then check if you are running the latest available versions of Joomla! (1.5.18), Joom!Fish (2.0.4) and the extensions you're having problems with.

We need the following at least (you can find this in your Joomla! backend under help > system info):

* Joomla! version
* Joom!Fish version
* Extension version
* PHP version (e.g. 5.2.5). Note: The support for PHP4 is discontinued.
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Webserver to PHP Interface
* Database version
* memory_limit from your phpinfo

Please enable error reporting and include any error messages in your posting.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

translate Joomgallery Pictures: blank page + module issues

Postby apaternoster on Thu Jun 14, 2012 12:00 am

Hello,
On this site: http://www.elshaddai.be/index.php?lang=nl, built with
PHP Version: 5.3.13
Joomla! Version: Joomla! 1.5.26 Stable
Joom!Fish 2.2.3
French as default language, Dutch is active

I have installed the content elements for this 3rd party extension from http://www.en.joomgallery.net/downloads ... ish-2.html, and installed them.
I can translate the Joomgallery - Categories, but get a blank page when trying to translate Joomgallery - Pictures. No error codes at all in Firefox.
Content element files are installed with correct file names:
ftp://mydomainname/administrator/compon ... y_catg.xml
ftp://mydomainname/administrator/compon ... allery.xml

Does anybody know what to do about this?
-------
Furthermore, when Dutch is chosen in the front end, I see the translated category names. But 2 modules (JoomTreeview 1.5.7.1 and JoomCategories 1.5.7.1) show the French category name, while the rest of the module translation has worked and is showing in Dutch.

This behavior is new, since I upgraded to the latest Joom!Fish version.
I hope someone is able to help.
Regards,
Adelheid
apaternoster
Newbee
 
Posts: 5
Joined: Mon Mar 01, 2010 12:53 am

Re: translate Joomgallery Pictures: blank page + module issu

Postby apaternoster on Thu Jun 14, 2012 12:07 am

additional info:
memory_limit 160M
Web Server: Apache/2
Web Server to PHP interface: apache2handler
PHP Built on: Linux
JoomGallery 1.5.7.5

Hope this is now complete.
apaternoster
Newbee
 
Posts: 5
Joined: Mon Mar 01, 2010 12:53 am

Re: translate Joomgallery Pictures: blank page + module issu

Postby quodo on Thu Jun 14, 2012 12:44 pm

When you get a blank page in Joomla it is usually an error that isn't showing. The error will show when you enable debug and set error reporting to Maximum:
*Enable Debug
Backend > Site > Global Configuration > System > Debug System = Yes
*Set Error Reporting to Maximum
Backend > Site > Global Configuration > Server > Error Reporting = Maximum
After you have noted down the error you see, set these settings back to what they were on a live site.

With the error message you get you have a start to search for a solution.

Note: I have no experience with Joomgallery, JoomTreeview or JoomCategories...
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: translate Joomgallery Pictures: blank page + module issu

Postby apaternoster on Tue Jun 26, 2012 11:06 pm

Hi Quodo,
Thanks for posting this. I got following error:
Notice: Undefined variable: jfgt_available_engines in /home/..../plugins/system/jfgoogletranslator.php on line 68

Fatal error: Call to undefined method translationFilter::translationFilter() in /home/..../administrator/components/com_joomfish/contentelements/translationJoomgallery_catgFilter.php on line 40


I guess the first is just a warning, and I can ignore (I have googled the error, found nothing that I could use, except a post that told me that notices are only warnings and can be ignored).

The second, fatal error: can someone help me out?
I found this in the php file mentioned above

Code: Select all
// Don't allow direct linking
defined( 'JPATH_BASE' ) or die( 'Direct Access to this location is not allowed.' );
 
class translationjoomgallery_catgFilter extends translationFilter
{
  function translationjoomgallery_catgFilter ($contentElement){
    $this->filterNullValue=-1;
    $this->filterType="joomgallery_catg";
    $this->filterField = $contentElement->getFilter("joomgallery_catg");
    parent::translationFilter($contentElement);
  }
 
  function _createFilter(){
    $db =& JFactory::getDBO();
    if (!$this->filterField ) return "";
    $filter="";
    if ($this->filter_value!=$this->filterNullValue) {
      // get list of picids in the appropriate category
      $sql = "SELECT pic.id FROM #__joomgallery as pic"
        ." WHERE pic.catid=$this->filter_value";
      // echo($sql);
      $db->setQuery($sql);
      $picids = $db->loadObjectList();
      $idstring = "";
      foreach ($picids as $pid){
        if (strlen($idstring)>0) $idstring.=",";
          $idstring.=$pid->id;
      }
      $filter = "c.id IN($idstring)";
    }
    return $filter;
  }
 
 /**
 * Creates joomgallery_catg filter
 *
 * @param unknown_type $filtertype
 * @param unknown_type $contentElement
 * @return unknown
 */
  function _createfilterHTML(){
    $db =& JFactory::getDBO();
    if (!$this->filterField) return "";
    $categoryOptions=array();
    $categoryOptions[] = JHTML::_('select.option', '-1', JText::_('All Categories'));
    $sql = "SELECT DISTINCT cat.cid, cat.name FROM #__joomgallery_catg as cat,"
     ." #__".$this->tableName." as c, #__joomgallery as xref"
     ." WHERE c.catid=xref.catid AND xref.".$this->filterField."=cat.cid ORDER BY cat.name";
    //  echo($sql);
    $db->setQuery($sql);
    $cats = $db->loadObjectList();
    $catcount=0;
    foreach($cats as $cat) {
      $categoryOptions[] = JHTML::_('select.option', $cat->cid,$cat->name);
      $catcount++;
    }
    $categoryList=array();
    $categoryList["title"]= 'JoomGallery category';
    $categoryList["html"] = JHTML::_('select.genericlist', $categoryOptions, 'joomgallery_catg_filter_value', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $this->filter_value );
    return $categoryList;
  }
}
 
?>


No clue what needs to be corrected...
apaternoster
Newbee
 
Posts: 5
Joined: Mon Mar 01, 2010 12:53 am

Re: translate Joomgallery Pictures: blank page + module issu

Postby quodo on Sun Jul 08, 2012 4:23 pm

Perhaps the creator of these Content Element files can give a clue on what should be changed. What I'd try is to find a reference to "catg" in the joomgallery Content Element file(s) and remove that.

The installed Content Element files can be found here:
JOOMLAROOT\administrator\components\com_joomfish\contentelements\
For example the poll_data.xml has translationfilters with a section
Code: Select all
  <translationfilters>
       <polloptions_empty>text</polloptions_empty>
       <pollname>pollid</pollname>
  </translationfilters> 

where I thing that "polloptions_empty" refers to the file translationPolloptions_emptyFilter.php and "pollname" refers to the file translationPollnameFilter.php.

So when you compare these Poll filters function translationjoomgallery_catgFilter seems to be connected to a joomgallery_catg entry.

Now based on the Fatal Error message there may be a typo somewhere where "translationFilter" is called instead of "translationjoomgallery_catgFilter"???
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm


Return to 3rd Party extensions in general

Who is online

Users browsing this forum: Google [Bot] and 2 guests