Hi Friends,
I have using "Pligg 9.8/yget template/mysql 5" and from the logs,I see lots and lots of errors of this kind:
I researched on Pligg forums,and i noticed this solution someone recommended:Code:[client xx.xxx.xx.x] PHP Notice: Undefined index: return in /home/user/public_html/templates_c/c_02c60e36719986c34b1cd6f92ff68298.php on line 28, referer: http://www.xxx.com/topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: x in /home/user/public_html/libs/link.php on line 762, referer: http://www.xxx.com/topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/scriptaculous/scriptaculous_settings.php on line 8, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/admin_language/admin_language_settings.php on line 15, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/embed_videos/embed_videos_settings.php on line 15, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/ajaxcontact/ajaxcontact_settings.php on line 19, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/admin_formulas/admin_formulas_settings.php on line 16, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/send_announcement/send_announcement_settings.php on line 16, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/rss_import/rss_import_settings.php on line 15, referer: http://www.mysite.com/story.php?title=topic_title [client xx.xxx.xx.x] PHP Notice: Undefined variable: main_smarty in /home/user/public_html/modules/submitpro/submitpro_settings.php on line 19, referer: http://www.mysite.com/story.php?title=topic_title
http://forums.pligg.com/bug-report/2...ty-oops-2.html
i.e
But in Pligg 9.8 when i check the libs/tags.php file,i see this:Code:goto ./libs/tags.php and on line 12 change Quote: function tags_normalize_string($string) { $string = preg_replace('/[\.\,] *$/', "", $string); return mb_strtolower($string, 'UTF-8'); } to Quote: function tags_normalize_string($string) { $string = preg_replace('/[\.\,] *$/', "", $string); return strtolower($string); } in other words change mb_strtolower to strtolower and ($string, 'UTF-8') to ($string).
So,should i change this to:Code:function tags_normalize_string($string) { $string = preg_replace('/[\.\,] *$/', "", $string); return utf8_strtolower($string); }
Do you think this would resolve the issue??? Please help as to why i am getting so many errors.Code:function tags_normalize_string($string) { $string = preg_replace('/[\.\,] *$/', "", $string); return strtolower($string); }
Thanks



Reply With Quote



