The Joomla! Forum ™





Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Sep 14, 2005 6:46 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 9:07 am
Posts: 9531
Location: Assen, Netherlands
I have a problem with Mamblefish on mulitple websites. The original content doesn't show up and won't translate (backend) :(
I just read about people having the same problem and it seems to be caused by incompatibility with the new version of mySQL.

Could someone explain to me what's really wrong? I have PHP version 4.3.11 and MySQL version 4.0.25-standard.
And is there a patch available to fix this?

_________________
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlaideal.nl - iDEAL betaalmethode voor Joomla! en Virtuemart


Last edited by sc00zy on Fri Sep 16, 2005 5:58 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Sep 14, 2005 8:04 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
You are sure you are using still PHP 4.3? This is normally a common problem of PHP 4.4 (related with the Domit Lib).

I' not sure why the MySQL DB itself should cause troubles. I hope that with the release of the new forge I'll be able to setup a new complete bug set.

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Top
 Profile  
 
PostPosted: Wed Sep 14, 2005 9:13 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 9:07 am
Posts: 9531
Location: Assen, Netherlands
I checked again via Mambo Administrator > Help > System info and it says PHP version 4.4.0

Is there something I can do to temporarely fix this "bug" other then switching back to an older PHP version?

_________________
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlaideal.nl - iDEAL betaalmethode voor Joomla! en Virtuemart


Top
 Profile  
 
PostPosted: Wed Sep 14, 2005 9:27 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 558
Location: Gogledd Cymru
A few weeks ago, as an experiment, I wrote an alternative version of _loadContentElement() which loads the config data from php files instead of xml.  This is faster than xml and also can be cached by my php accelerator.

It also eliminates the need to use the domit lib  :)

Code:
   /** Loading of related mbf.php files
   */
   function _loadContentElements() {
      // Try to find the PHP files
      $filesindir = mosReadDirectory($this->_adminPath ."/contentelements2" ,".mbf.php");
      if(count($filesindir) > 0)
      {
         foreach($filesindir as $file)
         {
           // can't do include_once since in the admin function this gets called twice!!!
           include( $this->_adminPath . "/contentelements2/" .  $file);
         }
         foreach($phpContentElement as  $tempContentElement )
           {
             $contentElement =& new ContentElement2( $tempContentElement );
             $this->_contentElements[$contentElement->getTableName()] =& $contentElement;
            
           }
      }
   }


The format of the .mbf.php files is straightforward - here is the one I use for content

Code:
<?php
$tempContentElement = array("type" => "contentelement",
  "name" => "Contents",
  "author" => "A. Kempkens",
  "version" => "1.0",
  "description" => "Definition for Mambo content",
  "tabletype" => "content",
        "filter" => "c.state >= 0",
     "tablename" => "content");
        $tempContentElement["fields"][]=array("type"=>"referenceid","name" => "id","translate" =>"0", "label" => "ID");
        $tempContentElement["fields"][]=array("type"=>"titletext","name" => "title","translate" =>"1", "label" => "Title");
        $tempContentElement["fields"][]=array("type"=>"htmltext","name" => "introtext","translate" =>"1", "label" => "Introtext");
        $tempContentElement["fields"][]=array("type"=>"htmltext","name" => "fulltext","translate" =>"1", "label" => "Fulltext");
        $tempContentElement["fields"][]=array("type"=>"created_date","name" => "created","translate" =>"0", "label" => "Created");
        $tempContentElement["fields"][]=array("type"=>"modified_date","name" => "modified","translate" =>"0", "label" => "Modified");
        $tempContentElement["fields"][]=array("type"=>"checked_out_by","name" => "checked_out","translate" =>"0", "label" => "Check out by");
        $tempContentElement["fields"][]=array("type"=>"checked_out_date","name" => "checked_out_time","translate" =>"0", "label" => "Check out date");
     
 $phpContentElement[$tempContentElement["tablename"]]=$tempContentElement;
 
?>


The same approach could easily be adopted for the language xml files.

Alex - Would this provide a solution to the PHP 4.4.0 problem?

Geraint

p.s. I have a batch of mbf.php files already converted from xml


Top
 Profile  
 
PostPosted: Wed Sep 14, 2005 9:28 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Sep 03, 2005 10:54 am
Posts: 322
Location: San Francisco, CA
If you can get to mamboforge.net there is a discussion with a few patches.

If someone has the patch could they post those patches as well?


Top
 Profile  
 
PostPosted: Wed Sep 14, 2005 10:16 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
Yea, you can upgrade your domit lib - I've been told that this should help.

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Top
 Profile  
 
PostPosted: Wed Sep 14, 2005 10:53 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 9:07 am
Posts: 9531
Location: Assen, Netherlands
What do I need to search and replace? Could you be a little bit more specific? :-[

_________________
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlaideal.nl - iDEAL betaalmethode voor Joomla! en Virtuemart


Top
 Profile  
 
PostPosted: Thu Sep 15, 2005 6:56 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
within the /includes directory - there is a external lib called domit. You might try to replace this lib. It looks like that the new PHP 4.4 is causing problems in the handling of the XML files. This is causing your trouble.

I'll gonna check this when Joomla! 1.0 is out and I'm working on the new Fish version.


There is also a small fix at: http://mamboforge.net/tracker/index.php ... 7&atid=109

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Last edited by akede on Thu Sep 15, 2005 6:58 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group