Piotras a écrit :
I have the problem not only in Nadmin but with the websites tooAnything interesting in PHP log? Set this to E_ALL. Oh sorry the right part of the script is "$page = mgd_get_page( $id ); echo $page->title;" 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.sitegroupFROM 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'm not sure, I created a new database with datagard and the new database is exactly as my converted one.I think that database is not converted correctly. 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. |
- Re: [midgard-user] Perhaps a bug !? Sam Przyswa
- Re: [midgard-user] Perhaps a bug !? Piotras
- Re: [midgard-user] Perhaps a bug ... Sam Przyswa
- Re: [midgard-user] Perhaps a ... Piotras
- Re: [midgard-user] Perhaps a ... Sam Przyswa
- Re: [midgard-user] Perhaps a bug !? Piotras
- Re: [midgard-user] Perhaps a bug !? Sam Przyswa
- Re: [midgard-user] Perhaps a bug !? Piotras
- Re: [midgard-user] Perhaps a bug !? Sam Przyswa
- Re: [midgard-user] Perhaps a bug !? Piotras
- Re: [midgard-user] Perhaps a bug ... Sam Przyswa
- Re: [midgard-user] Perhaps a ... Piotras
- Re: [midgard-user] Perhaps a ... Sam Przyswa
- Re: [midgard-user] Perhaps a ... Piotras
- Re: [midgard-user] Perhaps a ... Sam Przyswa
- Re: [midgard-user] Perhaps a ... Piotras
- Re: [midgard-user] Perhaps a ... Henri Kaukola
- Re: [midgard-user] Perhaps a ... Piotras
- [midgard-user] Re: Perhaps a ... Alexey Zakhlestine
- Re: [midgard-user] Re: Perhap... Sam Przyswa
