Page 1 of 1
					
				module polls dans cmsms 1.8.1
				Posted: Wed Aug 11, 2010 1:41 pm
				by berninoel42
				Bonjour,
Je reviens à la charge à propos du module polls.
Je voulais utiliser le module polls pour faire un ptit sondage sur un site. 
Je l'ai déjà utilisé sur d'autres sites et ils fonctionnaient très bien.
Mais je m'aperçois que sur la version 1.8.1 (de base)de cmsms, il ne fonctionne pas. 
J'ai testé le module sur la version 1.7.1 et il tourne bien. 
je désinstalle et réinstalle mais rien n'y fait.
voici les versions utilisées et les modules dépendants:
cmsms 1.8.1
polls 	0.3.1
AjaxMadeSimple	0.3.1
version php: 5.2.13
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Wed Aug 11, 2010 2:07 pm
				by berninoel42
				petit rajout:
j'ai testé avec une version de poll 0.3.0 
aucun probleme pour créer un sondage mais lorsque l'on vote et qu'on clique sur vote, on nous renvoi sur une page du site (toujours la même)
j'ai testé avec une version de poll 0.3.1
aucun probleme pour créer un sondage même symptome que précédement mais à l'affichage du module voila ce que ca indique:
Warning: Invalid argument supplied for foreach() in /homepages/32/d336112495/htdocs/modules/AjaxMadeSimple/AjaxMadeSimple.module.php on line 198
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /homepages/32/d336112495/htdocs/modules/AjaxMadeSimple/AjaxMadeSimple.module.php on line 211
Warning: Invalid argument supplied for foreach() in /homepages/32/d336112495/htdocs/modules/AjaxMadeSimple/AjaxMadeSimple.module.php on line 198
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /homepages/32/d336112495/htdocs/modules/AjaxMadeSimple/AjaxMadeSimple.module.php on line 211
Warning: Invalid argument supplied for foreach() in /homepages/32/d336112495/htdocs/modules/AjaxMadeSimple/AjaxMadeSimple.module.php on line 198
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /homepages/32/d336112495/htdocs/modules/AjaxMadeSimple/AjaxMadeSimple.module.php on line 211
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Wed Aug 11, 2010 6:54 pm
				by jce76350
				re,
l"erreur viendrait plutôt de d'ajax
passe en mode débug pour voir
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Thu Aug 12, 2010 9:24 am
				by berninoel42
				Je suis passé en mode débug mais je ne sais pas trop quoi faire de toute les infos que j'ai.
Est il possible d'avoir une aide de votre part?
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Thu Aug 12, 2010 3:47 pm
				by jce76350
				que dis le débug ?
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Mon Aug 16, 2010 10:01 am
				by berninoel42
				voila ce que dit le débug dans la page une fois avoir voté (petit rappel: lorsqu'on clique sur "vote" il ne se passe rien).
J'ai utilisé la versions 1.8.2 de cmsms ( la dernière pour vérifier que ce n'était pas un problème d' option use_hierarchy ). version de base sans module rajouté a part "poll" et "ajaxmadesimple". les requête sql m'ont l'air bonnes pourtant.
Debug: (0.066114) - (778480)
loading smarty
Debug: (0.07604) - (1101520)
loading adodb
Debug: (0.084097) - (1203224)
loading page functions
Debug: (0.092088) - (1455104)
loading content functions
Debug: (0.099033) - (1694872)
loading pageinfo functions
Debug: (0.103391) - (1733560)
loading translation functions
Debug: (0.107422) - (1807920)
loading events functions
Debug: (0.113128) - (1909544)
loading php4 entity decode functions
Debug: (0.121642) - (2169920)
done loading files
Debug: (0.169595) - (2956856)
(mysql): SET NAMES 'utf8'
Debug: (0.172079) - (2975424)
(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs
Debug: (0.196098) - (3055712)
(mysql): SELECT * FROM cms_userplugins
Debug: (0.223222) - (3531856)
(mysql): SELECT * FROM cms_modules WHERE admin_only = 0 AND active = 1 ORDER by module_name
Debug display of 'End of include':(0.394364) - (5397240)
Debug display of 'Load Content Operations':(0.398265) - (5397272)
Debug display of 'End Load Content Operations':(0.417017) - (6069920)
Debug: (0.418246) - (6078560)
(mysql): SELECT content_id FROM cms_content WHERE default_content = 1
Debug: (0.419076) - (6075592)
(mysql): SELECT c.content_id, c.content_name, c.content_alias, c.menu_text, c.titleattribute, c.hierarchy, c.metadata, c.id_hierarchy, c.prop_names, c.create_date AS c_create_date, c.modified_date AS c_date, c.cachable, c.last_modified_by, t.template_id, t.encoding, t.modified_date AS t_date FROM cms_templates t INNER JOIN cms_content c ON c.template_id = t.template_id WHERE (c.content_alias = '15' OR c.content_id = '15') AND c.active = 1
Debug: (0.419845) - (6078216)
(mysql): SELECT MAX(modified_date) AS thedate FROM cms_content c
Debug display of 'Start Loading Hierarchy Manager':(0.420667) - (6066184)
Debug display of 'starting tree':(0.420723) - (6068792)
Debug: (0.429793) - (6232528)
file needs loading
Debug display of 'ending tree':(0.431627) - (6287432)
Debug display of 'End Loading Hierarchy Manager':(0.43169) - (6275264)
Debug: (0.43174) - (6275504)
start findNodeByTag
Debug: (0.431972) - (6275736)
end findNodeByTag
Debug: (0.43285) - (6286616)
(mysql): SELECT * FROM cms_content WHERE content_id = '15'
Debug: (0.440253) - (6491864)
load from data is loading properties
Debug: (0.441188) - (6501776)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '15'
Debug: (0.455248) - (6652560)
(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = '22'
Debug: (0.482115) - (7471584)
(mysql): SELECT eh.tag_name, eh.module_name, e.originator, e.event_name, eh.handler_order, eh.handler_id, eh.removable FROM cms_event_handlers eh
        INNER JOIN cms_events e ON e.event_id = eh.event_id
        ORDER BY eh.handler_order ASC
Debug: (0.60253) - (7485536)
start findNodeByTag
Debug: (0.60265) - (7485744)
end findNodeByTag
Debug: (0.952731) - (8017416)
start findNodeByTag
Debug: (0.95286) - (8017624)
end findNodeByTag
Debug: (0.961721) - (8144512)
(mysql): SELECT content from cms_module_templates WHERE module_name = 'Search' and template_name = 'displaysearch'
Debug: (0.964633) - (8145088)
(mysql): SELECT module_name,template_name,modified_date 
                            FROM cms_module_templates
Debug display of 'Start of Menu Manager Display':(1.023063) - (8105920)
Debug: (1.024365) - (8124008)
(mysql): SELECT * FROM cms_content WHERE content_id = '34'
Debug: (1.024952) - (8138168)
load from data is loading properties
Debug: (1.026158) - (8147984)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '34'
Debug: (1.027424) - (8152656)
(mysql): SELECT * FROM cms_content WHERE parent_id = '34' ORDER BY hierarchy
Debug: (1.031873) - (8292552)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '36'
Debug: (1.033212) - (8296512)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '37'
Debug: (1.034608) - (8300272)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '29'
Debug: (1.035966) - (8306024)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '30'
Debug: (1.037322) - (8309600)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '46'
Debug: (1.038745) - (8315152)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '45'
Debug: (1.040086) - (8318520)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '38'
Debug: (1.041412) - (8321592)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '47'
Debug: (1.042666) - (8317656)
(mysql): SELECT * FROM cms_content WHERE content_id = '19'
Debug: (1.044161) - (8331936)
load from data is loading properties
Debug: (1.045521) - (8341760)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '19'
Debug: (1.04686) - (8347480)
(mysql): SELECT * FROM cms_content WHERE parent_id = '19' ORDER BY hierarchy
Debug: (1.050898) - (8469416)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '49'
Debug: (1.05225) - (8481744)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '13'
Debug: (1.053571) - (8484768)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '22'
Debug: (1.054976) - (8489472)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '16'
Debug: (1.05693) - (8493424)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '18'
Debug: (1.058653) - (8504616)
(mysql): SELECT * FROM cms_content WHERE parent_id = '55' ORDER BY hierarchy
Debug: (1.060721) - (8552776)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '55'
Debug: (1.062183) - (8559680)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '54'
Debug: (1.063538) - (8563176)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '51'
Debug: (1.065005) - (8567728)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '52'
Debug: (1.066271) - (8560488)
(mysql): SELECT * FROM cms_content WHERE content_id = '24'
Debug: (1.066807) - (8575024)
load from data is loading properties
Debug: (1.067523) - (8584848)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '24'
Debug: (1.068697) - (8588616)
(mysql): SELECT * FROM cms_content WHERE parent_id = '24' ORDER BY hierarchy
Debug: (1.071406) - (8629088)
(mysql): SELECT * FROM cms_content WHERE parent_id = '20' ORDER BY hierarchy
Debug: (1.074664) - (8728848)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '20'
Debug: (1.076067) - (8735472)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '39'
Debug: (1.077418) - (8738496)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '40'
Debug: (1.078763) - (8741032)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '41'
Debug: (1.080182) - (8743888)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '42'
Debug: (1.081589) - (8747064)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '43'
Debug: (1.082931) - (8749960)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '50'
Debug: (1.084263) - (8754672)
(mysql): SELECT * FROM cms_content WHERE parent_id = '25' ORDER BY hierarchy
Debug: (1.08612) - (8784928)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '25'
Debug: (1.089099) - (8791040)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '26'
Debug: (1.090515) - (8799528)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '28'
Debug display of 'End of Menu Manager Display':(1.241269) - (8786304)
Debug: (1.24154) - (8690552)
start findNodeByTag
Debug: (1.243615) - (8690760)
end findNodeByTag
Debug: (1.245892) - (8700928)
(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'Home'
Debug: (1.246692) - (8692152)
start findNodeByTag
Debug: (1.246814) - (8692360)
end findNodeByTag
Debug: (1.248257) - (8701464)
(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'Home'
Debug: (1.248425) - (8692688)
start findNodeByTag
Debug: (1.248503) - (8692896)
end findNodeByTag
Debug: (1.258861) - (8872792)
(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'news'
Debug: (1.25901) - (8864016)
start findNodeByTag
Debug: (1.259303) - (8864224)
end findNodeByTag
Debug: (1.2615) - (8874208)
(mysql): 
            SELECT count(mn.news_id) as count
            FROM cms_module_news mn
            LEFT OUTER JOIN cms_module_news_categories mnc 
            ON mnc.news_category_id = mn.news_category_id 
            LEFT OUTER JOIN cms_users u 
            ON u.user_id = mn.author_id 
            WHERE 
                status = 'published' 
            AND
        ( IFNULL(start_time, '1970-01-01 01:00:01')  < '2010-08-16 11:59:56')  AND (( IFNULL(end_time, '1970-01-01 01:00:01')  = '1970-01-01 01:00:01') OR (end_time > '2010-08-16 11:59:56')) 
Debug: (1.267066) - (8876432)
(mysql): 
            SELECT 
                mn.*, 
                mnc.news_category_name, 
                mnc.long_name, 
                u.username, 
                u.first_name,
                u.last_name 
            FROM cms_module_news mn
            LEFT OUTER JOIN cms_module_news_categories mnc 
            ON mnc.news_category_id = mn.news_category_id 
            LEFT OUTER JOIN cms_users u 
            ON u.user_id = mn.author_id 
            WHERE 
                status = 'published' 
            AND
        ( IFNULL(start_time, '1970-01-01 01:00:01')  < '2010-08-16 11:59:56')  AND (( IFNULL(end_time, '1970-01-01 01:00:01')  = '1970-01-01 01:00:01') OR (end_time > '2010-08-16 11:59:56')) ORDER BY news_date desc LIMIT 0, 3
Debug: (1.267994) - (8881760)
(mysql): SELECT A.value,B.id,B.name,B.type FROM cms_module_news_fieldvals A, cms_module_news_fielddefs B WHERE A.fielddef_id = B.id AND B.public = 1 AND A.news_id = '1' ORDER BY B.item_order
Debug: (1.280274) - (8888480)
(mysql): 
    SELECT news_category_id, news_category_name, hierarchy, long_name 
    FROM cms_module_news_categories 
    WHERE hierarchy not like ''
   ORDER by hierarchy
Debug: (1.282408) - (8892608)
(mysql): SELECT COUNT(news_id) as cnt FROM cms_module_news WHERE news_category_id='1' AND (( IFNULL(end_time, '1970-01-01 01:00:01')  = '1970-01-01 01:00:01') OR (end_time > '2010-08-16 11:59:56'))  AND status = 'published'
Debug: (1.289694) - (8949408)
(mysql): SELECT content from cms_module_templates WHERE module_name = 'News' and template_name = 'summarySample'
Debug: (1.477277) - (8816152)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'Printing' and template_name = 'linktemplate'
Debug: (1.480899) - (8875944)
(mysql): SELECT content from cms_module_templates WHERE module_name = 'Printing' and template_name = 'linktemplate'
Debug: (1.542162) - (8790328)
start findNodeByTag
Debug: (1.542277) - (8790536)
end findNodeByTag
Debug: (1.666769) - (8901680)
(mysql): SELECT * FROM cms_module_pollblocked WHERE pollid='1' AND sessionid='p0vthium6iif13cjdmip3auav2'
Debug: (1.67336) - (8904224)
(mysql): SELECT * FROM cms_module_polloptions WHERE pollid='1'
Debug: (1.674196) - (8907176)
(mysql): SELECT name FROM cms_module_polls WHERE id='1'
Debug display of 'Start of Menu Manager Display':(1.695112) - (8848656)
Debug display of 'End of Menu Manager Display':(1.838689) - (8798424)
Debug display of 'Start of Menu Manager Display':(1.843598) - (8798144)
Debug: (1.843759) - (8799768)
start findNodeByTag
Debug: (1.843838) - (8799976)
end findNodeByTag
Debug: (1.845115) - (8809712)
(mysql): SELECT content_id FROM cms_content WHERE hierarchy = '00001'
Debug: (1.845263) - (8801080)
start findNodeByTag
Debug: (1.845332) - (8801288)
end findNodeByTag
Debug display of 'End of Menu Manager Display':(1.845419) - (8800904)
Debug: (1.848407) - (8753040)
start global_content_get_template
Debug: (1.857555) - (8862536)
(mysql): SELECT htmlblob_id, htmlblob_name, html, owner, modified_date FROM cms_htmlblobs WHERE htmlblob_name = 'footer'
Debug: (1.857936) - (8853736)
end global_content_get_template
Debug: (1.858017) - (8853544)
start global_content_get_timestamp
Debug: (1.85809) - (8853880)
end global_content_get_timestamp
Debug: (2.106632) - (8805024)
(mysql): SELECT DISTINCT A.css_id,A.css_name,A.css_text,A.modified_date,
    A.media_type,B.assoc_order 
  FROM cms_css A, cms_css_assoc B
  WHERE A.css_id = B.assoc_css_id AND B.assoc_type = 'template'
    AND B.assoc_to_id = '22' ORDER BY B.assoc_order
Debug: (2.115041) - (8728648)
calling module TinyMCE from event ContentPostRender
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Mon Aug 16, 2010 6:58 pm
				by jce76350
				re,
a-priori je ne vois rien d'anormal
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Tue Aug 17, 2010 7:07 am
				by berninoel42
				as tu les moyens de testé de ton coté sur une version de base (en local ou pas)?Si ca fonctionne c'est que c'est l'ensemble de mon site qui est merdique..mais j'en doute puisque j'ai  testé sur 2 sites différents.merci encore
			 
			
					
				Re: module polls dans cmsms 1.8.1
				Posted: Thu Aug 26, 2010 9:22 pm
				by berninoel42
				Pas de solution? je suis ouvert à toute idée!