1
script_fu
Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

Xoops 2.0.17.1
Php 5.2.4
mysql 5
Apache 2
smartclient 1.0.2

smartclient/include/functions.php This is the code in line 163.

le="color: #000000"><?php return isset($handlers[$name]) ? $handlers[$name] : false;


Is there something wrong with this code above for XOOPS on a php5 server?


php debug
le="color: #000000"><?php Notice: Only variable references should be returned by reference in file /modules/smartclient/include/functions.php line 163 Queries SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC SELECT sess_data, sess_ip FROM xoops_session WHERE sess_id = '1fa6734e1ab09395c344fa1ce0851262' SELECT * FROM xoops_users WHERE uid=1 SELECT * FROM xoops_modules WHERE dirname = 'smartclient' SELECT * FROM xoops_config WHERE (conf_modid = '3') ORDER BY conf_order ASC SELECT * FROM xoops_group_permission WHERE (gperm_name = 'module_admin' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2')) SELECT * FROM xoops_smiles SELECT COUNT(*) FROM xoops_smartclient_client WHERE ((status = '2')) SELECT * FROM xoops_smartclient_client WHERE ((status = '2')) ORDER BY title ASC LIMIT 0, 5 SELECT * FROM xoops_modules WHERE mid = 3 SELECT * FROM xoops_groups Total: 11 queries

2
script_fu
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

This bug is over a year old and stops the module dead.

the same smartclient error

There are at least 6 other posts on smart factory about this same error with no resoultion.

I even went to the svn for impresscms to see if I could get an updated file.

Nope the module is not in the svn over on impress.

3
script_fu
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

bump

4
phppp
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;
  • 2007/12/29 18:37

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


$ret = isset($handlers[$name]) ? $handlers[$name] : null;
return $ret;

5
script_fu
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

Thank you Dj

Your example solved the notice.

Now there are no more issues in the error field for php debug.

I only have Queries left...

le="color: #000000"><?php Queries SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC SELECT sess_data, sess_ip FROM xoops_session WHERE sess_id = 'ef391863a0187c8b17303a8bdb4622d6' SELECT * FROM xoops_users WHERE uid=1 SELECT * FROM xoops_modules WHERE dirname = 'smartclient' SELECT * FROM xoops_config WHERE (conf_modid = '3') ORDER BY conf_order ASC SELECT * FROM xoops_group_permission WHERE (gperm_name = 'module_admin' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2')) SELECT * FROM xoops_smiles SELECT COUNT(*) FROM xoops_smartclient_client WHERE ((status = '2')) SELECT * FROM xoops_smartclient_client WHERE ((status = '2')) ORDER BY title ASC LIMIT 0, 5 SELECT * FROM xoops_modules WHERE mid = 3 SELECT * FROM xoops_groups


Once I added Dj's code...
I updated the module in Mod Admin and Cleared Templates_c

The module still does not work.

When I try to "add a new client" I still get the...

Quote:

An error occurred. Client has not updated.


Now what should I do?

6
script_fu
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

Im starting to think its related to smartobject. I went back thru and updated my system module,smartclient & smartobject.

Smartobject v0.92 had a mess of stuff...

le="color: #000000"><?php Errors Warning: fopen(/modules/smartobject/templates/smartobject_Addto.html) [function.fopen]: failed to open stream: No such file or directory in file /class/smarty/xoops_plugins/resource.db.php line 18 Warning: filesize() [function.filesize]: stat failed for /modules/smartobject/templates/smartobject_Addto.html in file /class/smarty/xoops_plugins/resource.db.php line 19 Warning: fread(): supplied argument is not a valid stream resource in file /class/smarty/xoops_plugins/resource.db.php line 19 Warning: fclose(): supplied argument is not a valid stream resource in file /class/smarty/xoops_plugins/resource.db.php line 20 Warning: filemtime() [function.filemtime]: stat failed for /modules/smartobject/templates/smartobject_Addto.html in file /class/smarty/xoops_plugins/resource.db.php line 32 Queries SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC SELECT sess_data, sess_ip FROM xoops_session WHERE sess_id = 'ef391863a0187c8b17303a8bdb4622d6' SELECT * FROM xoops_users WHERE uid=1 SELECT * FROM xoops_modules WHERE dirname = 'system' SELECT * FROM xoops_modules WHERE dirname = 'smartobject' SELECT * FROM xoops_newblocks WHERE mid=4 SELECT * FROM xoops_group_permission WHERE (gperm_name = 'module_admin' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2')) SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '4') ORDER BY conf_order ASC UPDATE xoops_modules SET name = 'SmartObject', dirname = 'smartobject', version = 92, last_update = 1198956135, weight = 0, isactive = 1, hasmain = 1, hasadmin = 1, hassearch = 0, hasconfig = 1, hascomments = 0, hasnotification = 0 WHERE mid = 4 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_refid = '4' AND tpl_type = 'module') ORDER BY tpl_refid DELETE FROM xoops_tplfile WHERE tpl_id = 86 DELETE FROM xoops_tplsource WHERE tpl_id = 86 DELETE FROM xoops_tplfile WHERE tpl_id = 87 DELETE FROM xoops_tplsource WHERE tpl_id = 87 DELETE FROM xoops_tplfile WHERE tpl_id = 85 DELETE FROM xoops_tplsource WHERE tpl_id = 85 DELETE FROM xoops_tplfile WHERE tpl_id = 84 DELETE FROM xoops_tplsource WHERE tpl_id = 84 DELETE FROM xoops_tplfile WHERE tpl_id = 83 DELETE FROM xoops_tplsource WHERE tpl_id = 83 DELETE FROM xoops_tplfile WHERE tpl_id = 82 DELETE FROM xoops_tplsource WHERE tpl_id = 82 DELETE FROM xoops_tplfile WHERE tpl_id = 81 DELETE FROM xoops_tplsource WHERE tpl_id = 81 DELETE FROM xoops_tplfile WHERE tpl_id = 80 DELETE FROM xoops_tplsource WHERE tpl_id = 80 DELETE FROM xoops_tplfile WHERE tpl_id = 79 DELETE FROM xoops_tplsource WHERE tpl_id = 79 DELETE FROM xoops_tplfile WHERE tpl_id = 78 DELETE FROM xoops_tplsource WHERE tpl_id = 78 INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_admin_menu.html', '(Admin) Tabs bar for administration pages', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (88, '<style type='text/css'> #buttontop { float:left; width:100%; background: #e7e7e7; line-height:normal; margin: 0; } #buttonbar { float:left; width:100%; background: #e7e7e7 url('<{$xoops_url}>/modules/smartobject/images/bg.gif') repeat-x left bottom; line-height:normal; } #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } #buttonbar li { display:inline; margin:0; padding:0; } #buttonbar a { float:left; background:url('<{$xoops_url}>/modules/smartobject/images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } #buttonbar a span { float:left; display:block; background:url('<{$xoops_url}>/modules/smartobject/images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } /* Commented Backslash Hack hides rule from IE5-Mac \*/ #buttonbar a span { float:none; } /* End IE5-Mac hack */ #buttonbar a:hover span { color:#333; } #buttonbar #current a { background-position:0 -150px; border-width:0; } #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } #buttonbar a:hover { background-position:0% -150px; } #buttonbar a:hover span { background-position:100% -150px; } #submenuswrap { float: left; background: #EFEFEF; width: 100%; border-bottom: 1px solid #000000; } #submenus { padding: 4px 0px 4px 8px; float: left; font-size: 92%; } .subitem { float:left; padding-right: 10px; } #currentsubitem { float:left; padding-right: 10px; font-weight: bold; } #wrap { width:100%; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; float: left; margin-bottom: 15px; } </style> <div id="wrap"> <div id="buttontop"> <div style="width: 100%; padding: 0;" cellspacing="0"> <div style="font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;float:left;"> <{foreach from=$headermenu key=itemnum item=menuitem}> <a class="nobutton" href="<{$menuitem.link}>"><{$menuitem.title}></a> <{if ($itemnum + 1) <> $headermenucount}> | <{/if}> <{/foreach}> </div> <div style="font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;float:right;"> <{$breadcrumb}> </div> </div> </div> <div id="buttonbar"> <ul> <{foreach from=$adminmenu key=itemnum item=menuitem}> <{if $itemnum==$current}> <li id="current"> <{else}> <li> <{/if}> <a href="../<{$menuitem.link}>"><span><{$menuitem.title}></span></a> </li> <{/foreach}> </ul> </div> <{if $submenus}> <div id="submenuswrap"> <div id="submenus"> <{foreach from=$submenus key=itemnum item=submenuitem}> <{if $itemnum==$currentsub}> <div id="currentsubitem"><{$submenuitem.title}> <{else}> <div class="subitem"><a href="<{$submenuitem.link}>"><{$submenuitem.title}></a> <{/if}> <{if ($itemnum + 1) <> $submenuscount}> | <{/if}> </div> <{/foreach}> </div> </div> <{/if}> </div> <!-- end wrap --> <br style="clear: both;" />') SELECT * FROM xoops_tplfile WHERE tpl_id=88 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_admin_menu.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_smarttable_display.html', 'Displays a table of SmartObjects', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (89, '<style type="text/css"> <!-- .bg3 a{color: #fff;} //--> img {vertical-align: middle;} </style> <div id="<{$smartobject_id}>"> <{if $smartobject_table_header}> <{$smartobject_table_header}> <{/if}> <div style="margin-bottom: 12px;"> <{if $smartobject_introButtons}> <div style="float: left;"> <form> <{foreach from=$smartobject_introButtons item=introButton}> <input type="button" name="<{$introButton.name}>" onclick="location='<{$introButton.location}>'" value="<{$introButton.value}>" /> <{/foreach}> </form> </div> <{/if}> <form name="pick" id="pick" action="<{$smartobject_optionssel_action}>" method="POST" style="margin: 0;"> <{if $smartobject_quicksearch}> <div style="float: right; border: 2px solid #C2CDD6; padding: 5px; background-color: #E6E6E6;"> <b><{$smartobject_quicksearch}> :</b> <input type="text" id="quicksearch_<{$smartobject_id}>" name="quicksearch_<{$smartobject_id}>" size="20" maxlength="255"/> <input type="submit" name="button_quicksearch_<{$smartobject_id}>" value="<{$smarty.const._SEARCH}>" /> </div> <{/if}> </div> <!-- Why this If Else... ?? Let's comment it for now //--> <div style="clear:both; padding-top:10px;"></div> <!-- <{if !$smartobject_user_side}> <div style="clear:both; padding-top:10px;"></div> <{else}> <div style="padding-top:45px;"> </div> <{/if}> //--> <!-- Why this If Else... ?? //--> <{if $smartobject_pagenav}> <div style="text-align:right; padding-bottom: 3px;"><{$smartobject_pagenav}></div> <{/if}> <table width="100%" cellspacing="1" cellpadding="2" border="0" style="border-left: 1px solid silver; border-top: 1px solid silver; border-right: 1px solid silver;"> <tr> <td> <{if $smartobject_optionssel_filtersArray}> <span style="font-weight: bold; font-size: 12px;"><{$smarty.const._CO_OBJ_FILTER}> : </span> <select name='filtersel' onchange='submit()'> <{foreach from=$smartobject_optionssel_filtersArray key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <{if $smartobject_optionssel_filters2Array}> <select name='filtersel2' onchange='submit()'> <{foreach from=$smartobject_optionssel_filters2Array key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <{/if}> <{/if}> </td> <td align='right'> <!-- <span style="font-weight: bold; font-size: 12px;"><{$smarty.const._CO_OBJ_SORT_BY}> : </span> <select name='sortsel' onchange='submit()'> <{foreach from=$smartobject_optionssel_fieldsForSorting key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <select name='ordersel' onchange='submit()'> <{foreach from=$smartobject_optionssel_ordersArray key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> //--> <{if !$smartobject_isTree}> <{$smarty.const._CO_OBJ_SHOW_ONLY}> <select name='limitsel' onchange='submit()'> <{foreach from=$smartobject_optionssel_limitsArray key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <{/if}> </td> </tr> </table> </form> <{if $smartobject_actionButtons}> <form name="form_<{$smartobject_id}>" id="form_<{$smartobject_id}>" method="POST"> <{/if}> <table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer> <tr> <{foreach from=$smartobject_columns item=column}> <th width="<{$column.width}>" align='<{$column.align}>'><b><{$column.caption}></b></th> <{/foreach}> <{if $smartobject_has_actions}> <th width='<{$smartobject_actions_column_width}>' align='center'> <{if $smartobject_show_action_column_title}> <b><{$smarty.const._CO_SOBJECT_ACTIONS}></b> <{/if}> </th> <{/if}> </tr> <{if $smartobject_objects}> <{foreach from=$smartobject_objects item=smartobject_object}> <{if $smartobject_actionButtons}> <input type='hidden' name='<{$smartobject_id}>_objects[]' id='listed_objects' value='<{$smartobject_object.id}>' /> <{/if}> <tr> <{foreach from=$smartobject_object.columns item=column}> <td class="<{$smartobject_object.class}>" width="<{$column.width}>" align="<{$column.align}>"><{$column.value}></td> <{/foreach}> <{if $smartobject_object.actions}> <td class="<{$smartobject_object.class}>" align='center'> <{foreach from=$smartobject_object.actions item=action}> <{$action}> <{/foreach}> </td> <{/if}> </tr> <{/foreach}> <{else}> <tr> <td class='head' style='text-align: center; font-weight: bold;' colspan="<{$smartobject_colspan}>"><{$smarty.const._CO_SOBJECT_NO_OBJECT}></td> </tr> <{/if}> </table> <{if $smartobject_actionButtons}> <div style="padding: 5px;text-align: right; border-left: 1px solid silver; border-bottom: 1px solid silver; border-right: 1px solid silver;"> <input type='hidden' name='op' id='op' value='' /> <{foreach from=$smartobject_actionButtons item=actionButton}> <input type="submit" name="<{$actionButton.op}>" onclick="this.form.elements.op.value='<{$actionButton.op}>'" value="<{$actionButton.text}>" /> <{/foreach}> </div> </form> <{/if}> <{if $smartobject_pagenav}> <div style="text-align:right; padding-top: 3px;"><{$smartobject_pagenav}></div> <{/if}> <{if $smartobject_introButtons}> <div style="padding-top:15px; paddig-bottom: 5px;"> <form> <{foreach from=$smartobject_introButtons item=introButton}> <input type="button" name="<{$introButton.name}>" onclick="location='<{$introButton.location}>'" value="<{$introButton.value}>" /> <{/foreach}> </form> </div> <{/if}> <{if $smartobject_table_footer}> <{$smartobject_table_footer}> <{/if}> </div> <br /> <{if $smartobject_printer_friendly_page}> <a href="javascript:openWithSelfMain('<{$smartobject_printer_friendly_page}>', 'smartpopup', 700, 519);"><img src="<{$xoops_url}>/modules/smartobject/images/actions/fileprint.png" alt="" /></a> <{/if}> <!-- <script language="javascript"> function Clickheretoprint() { var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; var content_value = document.getElementById("<{$smartobject_id}>").innerHTML; var docprint=window.open("","",disp_setting); docprint.document.open(); docprint.document.write('<html><head><title>Inel Power System</title>'); docprint.document.write('<link rel="stylesheet" media="print" href="<{$xoops_url}>/modules/smartobject/print.css" type="text/css">'); docprint.document.write('<link rel="stylesheet" media="all" href="<{$xoops_url}>/modules/system/style.css" type="text/css">'); docprint.document.write('</head><body onLoad="self.print()">'); docprint.document.write('<h2>Title</h2>'); docprint.document.write('<h3>SubTitle</h3>'); docprint.document.write(content_value); docprint.document.write('<div style="text-align: center;"><a href="javascript:window.close();">Close this window</a></div>'); docprint.document.write('</body></html>'); docprint.document.close(); docprint.focus(); } </script> <br /> <a href="javascript:Clickheretoprint();"><img src="<{$xoops_url}>/modules/smartobject/images/actions/fileprint.png" alt="" /></a> //-->') SELECT * FROM xoops_tplfile WHERE tpl_id=89 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_smarttable_display.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_about.html', 'Displays the about page on admin side', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (90, '<img src='<{$module_url}><{$module_image}>' alt='<{$module_name}>' style='float: left; margin-right: 10px;'/></a> <div style='margin-top: 1px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold;'> <{$module_name}> version <{$module_version}> (<{$module_status_version}>) </div> <div style='line-height: 16px; font-weight: bold;'> <{$smarty.const._AM_SOBJECT_BY}> <{$module_author_name}> </div> <div style = 'line-height: 16px; '> <{$module_license}> </div> <{if $module_credits}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_DEVELOPER_CREDITS}></b></td> </tr> <tr> <td class='even'><{$module_credits}></td> </tr> </table> <{/if}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td colspan='2' class='bg3'> <b><{$smarty.const._AM_SOBJECT_AUTHOR_INFO}></b> </td> </tr> <{if $module_developer_lead}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_LEAD}></td> <td class='even'><{$module_developer_lead}></td> </tr> <{/if}> <{if $module_developer_contributor}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_CONTRIBUTOR}></td> <td class='even'><{$module_developer_contributor}></td> </tr> <{/if}> <{if $module_people_developers}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_DEVELOPERS}></td> <td class='even'> <{foreach item=person from=$module_people_developers}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_testers}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_TESTERS}></td> <td class='even'> <{foreach item=person from=$module_people_testers}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_translaters}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_TRANSLATERS}></td> <td class='even'> <{foreach item=person from=$module_people_translaters}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_documenters}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_DOCUMENTERS}></td> <td class='even'> <{foreach item=person from=$module_people_documenters}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_other}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_OTHER}></td> <td class='even'> <{foreach item=person from=$module_people_other}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_developer_website_url}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_WEBSITE}></td> <td class='even'><a href="<{$module_developer_website_url}>" target="_blank"><{$module_developer_website_name}></a></td> </tr> <{/if}> <{if $module_developer_email}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_EMAIL}></td> <td class='even'><a href="mailto:<{$module_developer_email}>" target="_blank"><{$module_developer_email}></a></td> </tr> <{/if}> </table> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td colspan='2' class='bg3'><b><{$smarty.const._AM_SOBJECT_MODULE_INFO}></b></td> </tr> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_RELEASE_DATE}></td> <td class='even'><{$module_date}></td> </tr> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_STATUS}></td> <td class='even'><{$module_status}></td> </tr> <{if $module_demo_site_name}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_DEMO}></td> <td class='even'><a href="<{$module_developer_demo_site_url}>" target="_blank"><{$module_demo_site_name}></a></td> </tr> <{/if}> <{if $module_support_site_name}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_SUPPORT}></td> <td class='even'><a href="<{$module_developer_support_site_url}>" target="_blank"><{$module_support_site_name}></a></td> </tr> <{/if}> <{if $module_submit_bug}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_BUG}></td> <td class='even'><a href="<{$module_submit_bug}>" target="_blank"><{$smarty.const._CO_SOBJECT_MODULE_SUBMIT_BUG}></a></td> </tr> <{/if}> <{if $module_submit_feature}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_FEATURE}></td> <td class='even'><a href="<{$module_submit_feature}>" target="_blank"><{$smarty.const._CO_SOBJECT_MODULE_SUBMIT_FEATURE}></a></td> </tr> <{/if}> </table> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_MODULE_DISCLAIMER}></b></td> </tr> <tr> <td class='even'><{$module_warning}></td> </tr> </table> <{if $module_author_word}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_AUTHOR_WORD}></b></td> </tr> <tr> <td class='even'><{$module_author_word}></td> </tr> </table> <{/if}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_VERSION_HISTORY}></b></td> </tr> <tr> <td class='even'> <div style='line-height: 18px;'><{$module_version_history}></div> </td> </tr> </table>') SELECT * FROM xoops_tplfile WHERE tpl_id=90 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_about.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_sendlink.html', 'Displays a Send Link popup', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (91, '<{if $showform}> <div id="smartobject_sendlink"> <{$sendlink.javascript}> <form name="<{$sendlink.name}>" action="<{$sendlink.action}>" method="<{$sendlink.method}>" <{$sendlink.extra}>> <table class="outer" cellspacing="1"> <tr> <th colspan="2"><{$sendlink.title}></th> </tr> <!-- start of form elements loop --> <{foreach item=element from=$sendlink.elements}> <{if $element.hidden != true}> <tr> <td class="head"><{$element.caption}> <{if $element.description}> <div style="font-weight: normal"><{$element.description}></div> <{/if}> </td> <td class="<{cycle values="even,odd"}>"><{$element.body}></td> </tr> <{else}> <{$element.body}> <{/if}> <{/foreach}> <!-- end of form elements loop --> </table> </form> </div> <{else}> <div style="margin-top: 190px; text-align: center;"> <{if $send_success}> <h2><{$smarty.const._CO_SOBJECT_SEND_SUCCESS}></h2> <{$smarty.const._CO_SOBJECT_SEND_SUCCESS_INFO}> <br /><br /><br /><br /> <div><a href="javascript:window.close();"><{$smarty.const._CO_SOBJECT_CLOSE_WINDOW}></a></div> <{/if}> <{if $send_error}> <h2><{$send_error}></h2> <div><a href="javascript:window.close();"><{$smarty.const._CO_SOBJECT_CLOSE_WINDOW}></a></div> <{/if}> </div> <{/if}>') SELECT * FROM xoops_tplfile WHERE tpl_id=91 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_sendlink.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_sentlink_display.html', 'Displays info about a single link', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (92, '<table class="outer" border="0" cellpadding="3" cellspacing="1" width="100%"> <tr> <th colspan="2"><{$smarty.const._AM_SOBJECT_SENT_LINK_INFO}></th> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_DATE}></td> <td class="odd"><{$link.date}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._AM_SOBJECT_SENT_LINKS_FROM}></td> <td class="even"><{$link.fromInfo}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._AM_SOBJECT_SENT_LINKS_TO}></td> <td class="odd"><{$link.toInfo}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_LINK}></td> <td class="even"><{$link.fullLink}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_SUBJECT}></td> <td class="odd"><{$link.subject}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_BODY}></td> <td class="even"><{$link.body}></td> </tr> </table>') SELECT * FROM xoops_tplfile WHERE tpl_id=92 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_sentlink_display.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_form.html', 'Displays a SmartObject Form', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (93, '<!-- <a href='#' onclick='new Effect.Combo("caption_row");'>Click here to view full form</a> //--> <{$form.javascript}> <form name="<{$form.name}>" action="<{$form.action}>" method="<{$form.method}>" <{$form.extra}>> <table style="width: 100%" class="outer" cellspacing="1"> <tr> <th colspan="2"><{$form.title}></th> </tr> <!-- start of form elements loop --> <{foreach item=element from=$form.elements}> <{if $element.hidden != true}> <tr id="<{$element.name}>_row"> <td class="head"><{$element.caption}> <{if $element.description}> <div style="font-weight: normal"><{$element.description}></div> <{/if}> </td> <td class="<{cycle values="even,odd"}>"><{$element.body}></td> </tr> <{else}> <{$element.body}> <{/if}> <{/foreach}> <!-- end of form elements loop --> </table> </form> <!-- <script type="text/javascript"> <!-- hideElement("caption_row"); //--> </script> //-->') SELECT * FROM xoops_tplfile WHERE tpl_id=93 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_form.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_rating_form.html', 'Displays the rating form', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (94, '<{if $smartobject_css}> <{$smartobject_css}> <{/if}> <div id="smartobject_rating_container"> <div class="item"> <{if $smartobject_rated}> <div class="itemHead"><{$smarty.const._SOBJECT_RATING_ALREADY_RATED}><{$smartobject_user_rate}></div> <{elseif $smartobject_user_can_rate}> <div class="itemHead"><{$smarty.const._SOBJECT_RATING_RATE_THIS}></div> <div class="odd"> <form name='smartobject_rating_form' id='smartobject_rating_form' method='post'> <div style="float: left;"> <input name="smartobject_rating_value" value="1" type="radio">1 <input name="smartobject_rating_value" value="2" type="radio">2 <input name="smartobject_rating_value" value="3" type="radio">3 <input name="smartobject_rating_value" value="4" type="radio">4 <input name="smartobject_rating_value" value="5" type="radio">5 </div> <div style="float: right;"> <input name="smartobject_rating_submit" value="<{$smarty.const._SOBJECT_RATING_RATE}>" type="submit"> </div> </form> <br /> </div> <{/if}> <div class="odd" style="display: block;"> <div><b>Voters total : </b><{$smartobject_rating_stats_total}></div> <div><b>Average : </b><{$smartobject_rating_stats_average}></div> </div> </div> </div>') SELECT * FROM xoops_tplfile WHERE tpl_id=94 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_rating_form.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_print.html', 'Displays a printer friendly page', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (95, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" /> <meta http-equiv="content-language" content="<{$xoops_langcode}>" /> <meta name="robots" content="<{$xoops_meta_robots}>" /> <meta name="keywords" content="<{$xoops_meta_keywords}>" /> <meta name="description" content="<{$xoops_meta_description}>" /> <meta name="rating" content="<{$xoops_meta_rating}>" /> <meta name="author" content="<{$xoops_meta_author}>" /> <meta name="copyright" content="<{$xoops_meta_copyright}>" /> <meta name="generator" content="XOOPS" /> <title><{$smartobject_print_pageTitle}></title> <link rel="stylesheet" media="all" href="<{$xoops_url}>/modules/system/style.css" type="text/css"> <link rel="stylesheet" media="all" href="<{$xoops_url}>/modules/smartobject/print.css" type="text/css"> <style> #container {width: <{$smartobject_print_width}>px; margin-left: auto; margin-right: auto;} </style> </head> <body onload="self.print();"> <div id="container"> <{if $smartobject_print_title}> <h2><{$smartobject_print_title}></h2> <{/if}> <{if $smartobject_print_dsc}> <h3><{$smartobject_print_dsc}></h3> <{/if}> <div id="smartobject_printer_friendly_content"><{$smartobject_print_content}></div> <div id="print_close"><a href="javascript:window.close();">Close this window</a></div> </div> </body> </html>') SELECT * FROM xoops_tplfile WHERE tpl_id=95 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_print.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_singleview_display.html', 'Displays a single item view for an object', 1198956135, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (96, '<table class="outer" cellspacing="1" width="100%"> <{if $smartobject_single_view_header_value}> <tr> <th class="bg3" width="200"><{$smartobject_single_view_header_caption}></th> <th class="bg3"><{$smartobject_single_view_header_value}></th> </tr> <{/if}> <{foreach from=$smartobject_object_array key=key item=field name=singleviewloop}> <tr> <td class="head" width="200"><{$field.caption}></td> <td class="<{cycle values="even,odd"}>"><{$field.value}></td> </tr> <{/foreach}> </table>') SELECT * FROM xoops_tplfile WHERE tpl_id=96 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_singleview_display.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 4, 'default', 'smartobject_Addto.html', 'Displays an AddTo bar', 1198956135, 0, 'module') SELECT * FROM xoops_tplfile WHERE tpl_id=97 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_Addto.html') ORDER BY tpl_refid SELECT * FROM xoops_modules WHERE (hasadmin = '1' AND isactive = '1') ORDER BY weight ASC, mid ASC SELECT * FROM xoops_groups SELECT bid, name FROM xoops_newblocks WHERE mid=4 AND func_num=1 AND show_func='smartobject_addto_show' AND func_file='addto.php' UPDATE xoops_newblocks SET name='AddTo Social bookmarking block', edit_func='smartobject_addto_edit', content='', template='smartobject_block_addto.html', last_modified=1198956135 WHERE bid=15 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_refid = '15' AND tpl_type = 'block') ORDER BY tpl_refid UPDATE xoops_tplfile SET tpl_tplset = 'default', tpl_file = 'smartobject_block_addto.html', tpl_desc = '', tpl_lastimported = 0, tpl_lastmodified = 1198956135 WHERE tpl_id = 44 UPDATE xoops_tplsource SET tpl_source = '<!-- AddToBookmarks.com Version: 1.2 --> <script language="JavaScript" type="text/javascript"> var addtoLayout=<{$block.smartobject_addto_layout}>; var addtoMethod=<{$block.smartobject_addto_method}>; var AddURL = document.location.href; var AddTitle = escape(document.title); var addToScriptUrl='<{$block.smartobject_addto_url}>'; </script> <script language="JavaScript" src="<{$block.smartobject_addto_url}>addto.js" type="text/javascript"></script> <!-- End AddToBookmarks.com Version: 1.2--> <br /> <br />' WHERE tpl_id = 44 SELECT * FROM xoops_tplfile WHERE tpl_id=44 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_block_addto.html') ORDER BY tpl_refid SELECT * FROM xoops_newblocks WHERE mid=4 SELECT * FROM xoops_config WHERE conf_modid = '4' ORDER BY conf_order ASC DELETE FROM xoops_config WHERE conf_id = 170 SELECT * FROM xoops_configoption WHERE conf_id = '170' ORDER BY confop_id ASC INSERT INTO xoops_config (conf_id, conf_modid, conf_catid, conf_name, conf_title, conf_value, conf_desc, conf_formtype, conf_valuetype, conf_order) VALUES (0, 4, 0, 'enable_currencyman', '_MI_SOBJECT_CURRMAN', '0', '_MI_SOBJECT_CURRMANDSC', 'yesno', 'int', 0) SELECT metavalue FROM xoops_smartobject_meta WHERE metakey='version' SELECT metavalue FROM xoops_smartobject_meta WHERE metakey='version' UPDATE xoops_smartobject_meta SET metavalue = '6' WHERE metakey = 'version'


Its time to uninstall smartobject 0.92 and install the 0.9 beta. I dont know what else to do...

7
script_fu
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

smartobject 0.9

le="color: #000000"><?php All errors (3) queries (47) blocks (0) extra (1) timers (3) Errors Notice: Constant _CO_SOBJECT_WARNING_BETA already defined in file /modules/smartobject/language/english/common.php line 151 Notice: Constant _CO_SOBJECT_WARNING_FINAL already defined in file /modules/smartobject/language/english/common.php line 152 Notice: Constant _CO_SOBJECT_WARNING_RC already defined in file /modules/smartobject/language/english/common.php line 153 Queries SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC SELECT sess_data, sess_ip FROM xoops_session WHERE sess_id = 'ef391863a0187c8b17303a8bdb4622d6' SELECT * FROM xoops_users WHERE uid=1 SELECT * FROM xoops_modules WHERE dirname = 'system' SELECT COUNT(*) FROM xoops_modules WHERE dirname = 'smartobject' CREATE TABLE xoops_smartobject_meta ( `metakey` varchar(50) NOT NULL default '', `metavalue` varchar(255) NOT NULL default '', PRIMARY KEY (`metakey`) ) TYPE=MyISAM COMMENT='SmartObject by The SmartFactory <www.smartfactory.ca>' INSERT INTO xoops_smartobject_meta VALUES ('version','0.8') CREATE TABLE xoops_smartobject_link ( `linkid` int(11) NOT NULL auto_increment, `date` int(11) NOT NULL default '0', `from_uid` int(11) NOT NULL default '0', `from_email` varchar(255) NOT NULL default '', `from_name` varchar(255) NOT NULL default '', `to_uid` int(11) NOT NULL default '0', `to_email` varchar(255) NOT NULL default '', `to_name` varchar(255) NOT NULL default '', `link` varchar(255) NOT NULL default '', `subject` varchar(255) NOT NULL default '', `body` TEXT NOT NULL, `mid` int(11) NOT NULL default '0', `mid_name` varchar(255) NOT NULL default '', PRIMARY KEY (`linkid`) ) TYPE=MyISAM COMMENT='SmartObject by The SmartFactory <www.smartfactory.ca>' AUTO_INCREMENT=1 CREATE TABLE xoops_smartobject_tag ( `tagid` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '', `description` TEXT NOT NULL, PRIMARY KEY (`tagid`) ) TYPE=MyISAM COMMENT='SmartObject by The SmartFactory <www.smartfactory.ca>' AUTO_INCREMENT=1 CREATE TABLE xoops_smartobject_tag_text ( `tagid` int(11) NOT NULL default 0, `language` varchar(255) NOT NULL default '', `value` TEXT NOT NULL, PRIMARY KEY (`tagid`, `language`) ) TYPE=MyISAM COMMENT='SmartObject by The SmartFactory <www.smartfactory.ca>' AUTO_INCREMENT=1 SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '4') ORDER BY conf_order ASC INSERT INTO xoops_modules (mid, name, version, last_update, weight, isactive, dirname, hasmain, hasadmin, hassearch, hasconfig, hascomments, hasnotification) VALUES (0, 'SmartObject Framework', 90, 1198957751, 1, 1, 'smartobject', 1, 1, 0, 0, 0, 0) INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 5, 'default', 'smartobject_admin_menu.html', '(Admin) Tabs bar for administration pages', 1198957751, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (108, '<style type='text/css'> #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; margin: 0; } #buttonbar { float:left; width:100%; background: #e7e7e7 url('<{$xoops_url}>/modules/smartobject/images/bg.gif') repeat-x left bottom; font-size:93%; line-height:normal; } #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } #buttonbar li { display:inline; margin:0; padding:0; } #buttonbar a { float:left; background:url('<{$xoops_url}>/modules/smartobject/images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } #buttonbar a span { float:left; display:block; background:url('<{$xoops_url}>/modules/smartobject/images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } /* Commented Backslash Hack hides rule from IE5-Mac \*/ #buttonbar a span { float:none; } /* End IE5-Mac hack */ #buttonbar a:hover span { color:#333; } #buttonbar #current a { background-position:0 -150px; border-width:0; } #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } #buttonbar a:hover { background-position:0% -150px; } #buttonbar a:hover span { background-position:100% -150px; } #submenuswrap { float: left; background: #EFEFEF; width: 100%; border-bottom: 1px solid #000000; } #submenus { padding: 4px 0px 4px 8px; float: left; font-size: 85%; } .subitem { float:left; padding-right: 10px; } #currentsubitem { float:left; padding-right: 10px; font-weight: bold; } #wrap { width:100%; border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; float: left; margin-bottom: 15px; } </style> <div id="wrap"> <div id="buttontop"> <div style="width: 100%; padding: 0;" cellspacing="0"> <div style="font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;float:left;"> <{foreach from=$headermenu key=itemnum item=menuitem}> <a class="nobutton" href="<{$menuitem.link}>"><{$menuitem.title}></a> <{if ($itemnum + 1) <> $headermenucount}> | <{/if}> <{/foreach}> </div> <div style="font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;float:right;"> <{$breadcrumb}> </div> </div> </div> <div id="buttonbar"> <ul> <{foreach from=$adminmenu key=itemnum item=menuitem}> <{if $itemnum==$current}> <li id="current"> <{else}> <li> <{/if}> <a href="../<{$menuitem.link}>"><span><{$menuitem.title}></span></a> </li> <{/foreach}> </ul> </div> <{if $submenus}> <div id="submenuswrap"> <div id="submenus"> <{foreach from=$submenus key=itemnum item=submenuitem}> <{if $itemnum==$currentsub}> <div id="currentsubitem"><{$submenuitem.title}> <{else}> <div class="subitem"><a href="<{$submenuitem.link}>"><{$submenuitem.title}></a> <{/if}> <{if ($itemnum + 1) <> $submenuscount}> | <{/if}> </div> <{/foreach}> </div> </div> <{/if}> </div> <!-- end wrap --> <br style="clear: both;" />') SELECT * FROM xoops_tplfile WHERE tpl_id=108 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_admin_menu.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 5, 'default', 'smartobject_smarttable_display.html', 'Displays a table of SmartObjects', 1198957751, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (109, '<form> <div style="margin-bottom: 12px;"> <{foreach from=$smartobject_introButtons item=introButton}> <input type="button" name="<{$introButton.name}>" onclick="location='<{$introButton.location}>'" value="<{$introButton.value}>" /> <{/foreach}> </div> </form> <{if $smartobject_pagenav}> <div style="text-align:right; padding-bottom: 3px;"><{$smartobject_pagenav}></div> <{/if}> <form name="pick" id="pick" action="<{$smartobject_optionssel_action}>" method="POST" style="margin: 0;"> <table width="100%" cellspacing="1" cellpadding="2" border="0" style="border-left: 1px solid silver; border-top: 1px solid silver; border-right: 1px solid silver;"> <tr> <td> <{if $smartobject_optionssel_filtersArray}> <span style="font-weight: bold; font-size: 12px;"><{$smarty.const._CO_OBJ_FILTER}> : </span> <select name='filtersel' onchange='submit()'> <{foreach from=$smartobject_optionssel_filtersArray key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <{if $smartobject_optionssel_filters2Array}> <select name='filtersel2' onchange='submit()'> <{foreach from=$smartobject_optionssel_filters2Array key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <{/if}> <{/if}> </td> <td align='right'> <span style="font-weight: bold; font-size: 12px;"><{$smarty.const._CO_OBJ_SORT_BY}> : </span> <select name='sortsel' onchange='submit()'> <{foreach from=$smartobject_optionssel_fieldsForSorting key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <select name='ordersel' onchange='submit()'> <{foreach from=$smartobject_optionssel_ordersArray key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> <select name='limitsel' onchange='submit()'> <{foreach from=$smartobject_optionssel_limitsArray key=key item=field}> <option value='<{$key}>' <{$field.selected}> > <{$field.caption}></option> <{/foreach}> </select> </td> </tr> </table> </form> <table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer> <tr> <{foreach from=$smartobject_columns item=column}> <td class='bg3' width="<{$column.width}>" align='<{$column.align}>'><b><{$column.caption}></b></td> <{/foreach}> <td width='<{$smartobject_actions_column_width}>' class='bg3' align='center'><b><{$smarty.const._CO_SOBJECT_ACTIONS}></b></td> </tr> <{if $smartobject_objects}> <{foreach from=$smartobject_objects item=smartobject_object}> <tr> <{foreach from=$smartobject_object.columns item=column}> <td class="<{$smartobject_object.class}>" width="<{$column.width}>" align="<{$column.align}>"><{$column.value}></td> <{/foreach}> <td class="<{$smartobject_object.class}>" align='center'> <{foreach from=$smartobject_object.actions item=action}> <{$action}> <{/foreach}> </td> </tr> <{/foreach}> <{else}> <tr> <td class='head' style='text-align: center; font-weight: bold;' colspan="<{$smartobject_colspan}>"><{$smarty.const._CO_SOBJECT_NO_OBJECT}></td> </tr> <{/if}> </table> <{if $smartobject_pagenav}> <div style="text-align:right; padding-top: 3px;"><{$smartobject_pagenav}></div> <{/if}> <br />') SELECT * FROM xoops_tplfile WHERE tpl_id=109 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_smarttable_display.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 5, 'default', 'smartobject_about.html', 'Displays the about page on admin side', 1198957752, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (110, '<img src='<{$module_url}><{$module_image}>' alt='<{$module_name}>' style='float: left; margin-right: 10px;'/></a> <div style='margin-top: 1px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold;'> <{$module_name}> version <{$module_version}> (<{$module_status_version}>) </div> <div style='line-height: 16px; font-weight: bold;'> <{$smarty.const._AM_SOBJECT_BY}> <{$module_author_name}> </div> <div style = 'line-height: 16px; '> <{$module_license}> </div> <{if $module_credits}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_DEVELOPER_CREDITS}></b></td> </tr> <tr> <td class='even'><{$module_credits}></td> </tr> </table> <{/if}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td colspan='2' class='bg3'> <b><{$smarty.const._AM_SOBJECT_AUTHOR_INFO}></b> </td> </tr> <{if $module_developer_lead}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_LEAD}></td> <td class='even'><{$module_developer_lead}></td> </tr> <{/if}> <{if $module_developer_contributor}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_CONTRIBUTOR}></td> <td class='even'><{$module_developer_contributor}></td> </tr> <{/if}> <{if $module_people_developers}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_DEVELOPERS}></td> <td class='even'> <{foreach item=person from=$module_people_developers}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_testers}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_TESTERS}></td> <td class='even'> <{foreach item=person from=$module_people_testers}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_translaters}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_TRANSLATERS}></td> <td class='even'> <{foreach item=person from=$module_people_translaters}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_documenters}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_DOCUMENTERS}></td> <td class='even'> <{foreach item=person from=$module_people_documenters}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_people_other}> <tr> <td class='head' style="vertical-align: top;" width = '150px'><{$smarty.const._AM_SOBJECT_PEOPLE_OTHER}></td> <td class='even'> <{foreach item=person from=$module_people_other}> <div><{$person}></div> <{/foreach}> </td> </tr> <{/if}> <{if $module_developer_website_url}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_WEBSITE}></td> <td class='even'><a href="<{$module_developer_website_url}>" target="_blank"><{$module_developer_website_name}></a></td> </tr> <{/if}> <{if $module_developer_email}> <tr> <td class='head' width = '150px'><{$smarty.const._AM_SOBJECT_DEVELOPER_EMAIL}></td> <td class='even'><a href="mailto:<{$module_developer_email}>" target="_blank"><{$module_developer_email}></a></td> </tr> <{/if}> </table> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td colspan='2' class='bg3'><b><{$smarty.const._AM_SOBJECT_MODULE_INFO}></b></td> </tr> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_RELEASE_DATE}></td> <td class='even'><{$module_date}></td> </tr> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_STATUS}></td> <td class='even'><{$module_status}></td> </tr> <{if $module_demo_site_name}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_DEMO}></td> <td class='even'><a href="<{$module_developer_demo_site_url}>" target="_blank"><{$module_demo_site_name}></a></td> </tr> <{/if}> <{if $module_support_site_name}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_SUPPORT}></td> <td class='even'><a href="<{$module_developer_support_site_url}>" target="_blank"><{$module_support_site_name}></a></td> </tr> <{/if}> <{if $module_submit_bug}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_BUG}></td> <td class='even'><a href="<{$module_submit_bug}>" target="_blank"><{$smarty.const._CO_SOBJECT_MODULE_SUBMIT_BUG}></a></td> </tr> <{/if}> <{if $module_submit_feature}> <tr> <td class='head' width = '200px'><{$smarty.const._AM_SOBJECT_MODULE_FEATURE}></td> <td class='even'><a href="<{$module_submit_feature}>" target="_blank"><{$smarty.const._CO_SOBJECT_MODULE_SUBMIT_FEATURE}></a></td> </tr> <{/if}> </table> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_MODULE_DISCLAIMER}></b></td> </tr> <tr> <td class='even'><{$module_warning}></td> </tr> </table> <{if $module_author_word}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_AUTHOR_WORD}></b></td> </tr> <tr> <td class='even'><{$module_author_word}></td> </tr> </table> <{/if}> <table width='100%' cellspacing="1" cellpadding="3" border="0" class="outer" style="margin-top: 15px;"> <tr> <td class='bg3'><b><{$smarty.const._CO_SOBJECT_VERSION_HISTORY}></b></td> </tr> <tr> <td class='even'> <div style='line-height: 18px;'><{$module_version_history}></div> </td> </tr> </table>') SELECT * FROM xoops_tplfile WHERE tpl_id=110 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_about.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 5, 'default', 'smartobject_sendlink.html', 'Displays a Send Link popup', 1198957752, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (111, '<{if $showform}> <div id="smartobject_sendlink"> <{$sendlink.javascript}> <form name="<{$sendlink.name}>" action="<{$sendlink.action}>" method="<{$sendlink.method}>" <{$sendlink.extra}>> <table class="outer" cellspacing="1"> <tr> <th colspan="2"><{$sendlink.title}></th> </tr> <!-- start of form elements loop --> <{foreach item=element from=$sendlink.elements}> <{if $element.hidden != true}> <tr> <td class="head"><{$element.caption}> <{if $element.description}> <div style="font-weight: normal"><{$element.description}></div> <{/if}> </td> <td class="<{cycle values="even,odd"}>"><{$element.body}></td> </tr> <{else}> <{$element.body}> <{/if}> <{/foreach}> <!-- end of form elements loop --> </table> </form> </div> <{else}> <div style="margin-top: 190px; text-align: center;"> <{if $send_success}> <h2><{$smarty.const._CO_SOBJECT_SEND_SUCCESS}></h2> <{$smarty.const._CO_SOBJECT_SEND_SUCCESS_INFO}> <br /><br /><br /><br /> <div><a href="javascript:window.close();"><{$smarty.const._CO_SOBJECT_CLOSE_WINDOW}></a></div> <{/if}> <{if $send_error}> <h2><{$send_error}></h2> <div><a href="javascript:window.close();"><{$smarty.const._CO_SOBJECT_CLOSE_WINDOW}></a></div> <{/if}> </div> <{/if}>') SELECT * FROM xoops_tplfile WHERE tpl_id=111 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_sendlink.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 5, 'default', 'smartobject_sentlink_display.html', 'Displays info about a single link', 1198957752, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (112, '<table class="outer" border="0" cellpadding="3" cellspacing="1" width="100%"> <tr> <th colspan="2"><{$smarty.const._AM_SOBJECT_SENT_LINK_INFO}></th> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_DATE}></td> <td class="odd"><{$link.date}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._AM_SOBJECT_SENT_LINKS_FROM}></td> <td class="even"><{$link.fromInfo}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._AM_SOBJECT_SENT_LINKS_TO}></td> <td class="odd"><{$link.toInfo}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_LINK}></td> <td class="even"><{$link.fullLink}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_SUBJECT}></td> <td class="odd"><{$link.subject}></td> </tr> <tr> <td width="150px" class="head"><{$smarty.const._CO_SOBJECT_LINK_BODY}></td> <td class="even"><{$link.body}></td> </tr> </table>') SELECT * FROM xoops_tplfile WHERE tpl_id=112 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_sentlink_display.html') ORDER BY tpl_refid INSERT INTO xoops_tplfile (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (0, 'smartobject', 5, 'default', 'smartobject_tip.html', 'Displays help tip', 1198957752, 0, 'module') INSERT INTO xoops_tplsource (tpl_id, tpl_source) VALUES (113, '<div id="<{$tip.id}>" class="smart_tipMessage" style="float: none; display: none;"> <div class="smart_tipCaption"><{$tip.caption}></div> <{$tip.message}> </div> <div class="smart_tipLink"> <a href="javascript:Effect.Combo('<{$tip.id}>');"><{$tip.caption}></a> </div>') SELECT * FROM xoops_tplfile WHERE tpl_id=113 SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smartobject_tip.html') ORDER BY tpl_refid SELECT * FROM xoops_newblocks WHERE mid=5 SELECT bid FROM xoops_newblocks WHERE mid=5 INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 1, 5, 1, 'module_admin') INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 1, 5, 1, 'module_read') SELECT COUNT(*) FROM xoops_group_permission WHERE (gperm_modid = '1' AND gperm_name = 'module_admin' AND gperm_groupid = '2') INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 2, 5, 1, 'module_read') SELECT COUNT(*) FROM xoops_group_permission WHERE (gperm_modid = '1' AND gperm_name = 'module_admin' AND gperm_groupid = '3') INSERT INTO xoops_group_permission (gperm_id, gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (0, 3, 5, 1, 'module_read') SELECT * FROM xoops_modules WHERE (hasadmin = '1' AND isactive = '1') ORDER BY weight ASC, mid ASC SELECT * FROM xoops_groups SELECT * FROM xoops_group_permission WHERE (gperm_name = 'module_admin' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2')) Total: 47 queries



Hum...

And smartclient still does not work.

Stuck

8
script_fu
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;

For future reference smartpartner has a clone.php inside of it.

The clone script is setup to clone smartpartner into smartclient right out of the box.

I did this and installed the smartclient module after I cloned it....

It worked...
problem solved...

9
DJ007
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;
  • 2009/2/25 20:01

  • DJ007

  • Just popping in

  • Posts: 61

  • Since: 2004/2/15


Ok, I'm a little slow, but I can't find "clone module" anywhere, maybe I'm just tired... this fix seems worth a try before I scrap smart modules and redo clients section from a different module. Where do I clone it?

Thanks in advance,
DJ
.........

10
trabis
Re: Smartclient 1.0.2 Error. return isset($handlers[$name]) ? $handlers[$name] : false;
  • 2009/2/25 23:08

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

For future reference smartpartner has a clone.php inside of it.


Look inside smartpartner 'extra' folder (just guessing).