1
I found a very old and bad bug in "tplfile" table.
if module template type was not "module" (if its type was admin) it will created countless duplicate templates with each update.
you can easily find this bug by updating system module several times then go to phpmyadmin and table "tplfile" and search for tpl_module = system
SELECT * FROM PREFIX_tplfile WHERE tpl_module = "system"
You can find duplicate rows.
to solve that i change 2 files + version in xoops_version.php
1- xoops256/modules/system/admin/modulesadmin/main.php
2- xoops256/modules/system/include/update.php
3- xoops256/modules/system/xoops_version.php
in xoops_version.php i just change the version from 2.10 to 2.11 to warn user to update system module.
I create a patch for this bug.
http://www.jadoogaran.org/d/XOOPS256_patch_duplicate_template.zipalso i update persian trunk:
http://svn.code.sf.net/p/xoops/svn//XoopsLanguages/persian/core/trunk/to implement:
1- upload and overwrite files.
2- go to admin > modules > system > modules > update "system module"
3- clear all caches in admin > modules > system > maintenance
Please test this patch first and then use it with your own risk in running websites.