Piotras a écrit :
Anything interesting in PHP log?
Set this to E_ALL.

      
There is no PHP errors :-(
    

I think there should be some while Nadmin is running.
  
I have the problem not only in Nadmin but with the websites too
  
Does the mgd_get_page( $id ); echo $page->name; work for you ?
    

Yep.
Where it exactly does not work?
Nadmin , working site, simple script?
  
Oh sorry the right part of the script is "$page = mgd_get_page( $id ); echo $page->title;"

  
Perhaps Midgard 1.6.2 is no backward compatible with 1.4.1, is there a
way to back in no multilanged version (source code) ?
    

Yeah, it is possible.
Write sample script with mgd_get_page(id).
Set host debug level by placing this directive in vhost configuration.
MidgardLog debug+ /var/log/midgard.log
  
I do that and it's very strange because when I test the query found in the midgard.log this query return the page name but midgard seems loose it, all others fields are well returned.

There is a part of my script:

$first_tree = mgd_list_pages($root_page);

while( $first_tree->fetch() ) {
            if ($first_tree->parameter('bouton', 'position') || $first_tree->parameter('bouton', 'syndicat')) {
             $list[] = array(
                      "id"         => $first_tree->id,
                      "order"   => $first_tree->parameter('bouton', 'position'),
                      "separ"   => $first_tree->parameter('bouton', 'separateur'),
                      "syndic"  => $first_tree->parameter('bouton', 'syndicat'),
                      "name"    => $first_tree->name,
                      "title"       => $first_tree->title
                      );
             }

The query found in the log for mgd_list_pages($root_page); is

SELECT page.id AS id, name, style, title, lang, page.changed AS
CHANGED , page.author AS author, page.owner AS owner, page_i.author AS contentauthor, page_i.owner AS contentowner, Concat( firstname,
IF (
firstname = '' || lastname = '', '', ' '
), lastname ) AS authorname, page.sitegroup
FROM page, page_i, person
WHERE (
up =130
AND page_i.sid = page.id
AND page_i.lang =0
AND person.id = page.author
)
AND (
page.sitegroup
IN ( 0, 4 )
AND person.sitegroup
IN ( 0, 4 )
)
ORDER BY name
LIMIT 0 , 30


(130 is the id of my $root_page)

There is a part of the return query:

+------+-----------------------+-------+---------------------------
| id   | name                  | style | title                   
+------+-----------------------+-------+---------------------------
|  157 | Acteurs_Branche       |    36 | Acteurs de la branche    

As you can see the name field is returned

I rised the limit of PHP scripts memory but it's the same, echo $first_tree->name; return 0 (NULL)
I think that database is not converted correctly.
  
I'm not sure, I created a new database with datagard and the new database is exactly as my converted one.

I don't understand where is the problem, it's a pitty because my new Midgard 1.6.2 on my new machine is a lot faster than my 1.4.1 and the new cache work fine.

Thanks a lot for your help !

Sam.
 

--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
MailScanner remercie transtec pour son soutien.

Reply via email to