Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Error in admin panel
by intosia on 2005/10/12 16:44:29

Thanks man! I searched tplfile table for module template that didt had installed anymore and deleted them, that did the trick!

Thanks for the tip
Re: Error in admin panel
by Mithrandir on 2005/10/12 9:28:41

I can't say how it got there, but it seems that a template is referencing a module that no longer exists.

It will be a bit of work to clear out, but try looking at the tpl_modid (if I recall correctly) column in the {prefix}_tplfile table and note down the ids. Then look in the {prefix}_modules table for ids that are in the tplfile, but not in the modules table.

with PHPMyAdmin, something like this:
le="color: #000000"><?php SELECT distinct tpl_modid FROM {prefix}_tplfile; and SELECT mid FROM {prefix}_modules

and compare the two lists.

If you find one or more tpl_modid's that are not in the modules list, search the tplfile table for templates with that module id and delete them and the tplsource entry.

Something like this should work:
le="color: #000000"><?php DELETE FROM {prefix}_tplfile f, {prefix}_tplsource s WHERE f.tpl_id=s.tpl_id AND f.tpl_modid=XX; (replace XX with the module id, you've found)


I'm not 100% on the column names, so please doublecheck :)
Error in admin panel
by intosia on 2005/10/12 8:33:00

Ok, i get this php error when i goto 'Templates' in the admin panel...

I dont get it :S

le="color: #000000"><?php Fatal error: Call to a member function on a non-object in /home/devils/domains/devilsclan.net/public_html/v2/modules/system/admin/tplsets/main.php on line 103


This is the line 103:
le="color: #000000"><?php echo '<li>'.$module->getVar('name').' [<a href="admin.php?fct=tplsets&amp;op=listtpl&amp;tplset='.$tplsetname.'&amp;moddir='.$ni.'">'._LIST.'</a> (<span style="color:#ff0000; font-weight: bold;">0</span>)] [<a href="admin.php?fct=tplsets&amp;op=generatemod&amp;tplset='.$tplsetname.'&amp;moddir='.$ni.'">'._MD_GENERATE.'</a>]</li>';


can somebody help me with this?

Who's Online

210 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits