Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Toufique Ahmed - tammikuu 20, 2006, 10:42:50 IP

Otsikko: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 20, 2006, 10:42:50 IP
Hello,
         I have SMF 1.1 Rc2 and i am having this error

LainaaFatal error: Cannot redeclare template_init() (previously declared in /mnt/web_m/d33/s37/b0256a01/www/forum/Sources/Load.php(1607) : eval()'d code:63) in /mnt/web_m/d33/s37/b0256a01/www/forum/Sources/Load.php(1607) : eval()'d code on line 59

I can't understand it, please tell me how can i get ride of this error!

Thanks
Toufique Ahmed
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 20, 2006, 11:05:02 IP
Do you have any mods installed?

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 20, 2006, 11:18:17 IP
I have not installed any mod! but i have edited "display.template.php" to insert the clicksor ads code! and nothing else. I am facing this problem from night! give any solution..
Thanks
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 20, 2006, 11:24:52 IP
Can you please upload this file to your forum root and point your browser to templateEval.php
http://www.simplemachines.org/community/index.php?action=dlattach;topic=66712.0;attach=12977

After that please tell me the error you are getting.

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 20, 2006, 11:56:29 IP
I have uploaded this file on ...../forum/   and then opened this url
http://www.nizamani.com/forum/templateEval.php

and this error occurs

LainaaWarning: Missing argument 2 for db_query() in /mnt/web_m/d33/s37/b0256a01/www/forum/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /mnt/web_m/d33/s37/b0256a01/www/forum/Sources/Subs.php on line 237

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web_m/d33/s37/b0256a01/www/mkportal/include/mk_mySQL.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web_m/d33/s37/b0256a01/www/mkportal/include/mk_mySQL.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web_m/d33/s37/b0256a01/www/mkportal/include/mk_mySQL.php on line 57
ERROR: Database error.
Cannot execute the query: SELECT icon, title, url, position, target FROM mkp_mainlinks WHERE type = '1' ORDER BY `position`
MySql Error returned: No database selected
MySql Error code: 1046
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 21, 2006, 12:19:59 AP
Run this query in phpMyAdmin.

INSERT INTO smf_settings
   (variable, value)
VALUES ('disableTemplateEval', '1');

What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 21, 2006, 01:08:18 AP
I am having this error


LainaaWarning: Missing argument 2 for db_query() in /mnt/web_m/d33/s37/b0256a01/www/forum/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /mnt/web_m/d33/s37/b0256a01/www/forum/Sources/Subs.php on line 237

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web_m/d33/s37/b0256a01/www/mkportal/include/mk_mySQL.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web_m/d33/s37/b0256a01/www/mkportal/include/mk_mySQL.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web_m/d33/s37/b0256a01/www/mkportal/include/mk_mySQL.php on line 57
ERROR: Database error.
Cannot execute the query: SELECT icon, title, url, position, target FROM mkp_mainlinks WHERE type = '1' ORDER BY `position`
MySql Error returned: No database selected
MySql Error code: 1046

in http://www.nizamani.com/forum/templateEval.php

and my forum is working properly, but when i tryied to open a post(http://www.nizamani.com/forum/index.php?topic=653.msg1083#new) this error occurs


Lainaa
Fatal error: Cannot redeclare template_init() (previously declared in /mnt/web_m/d33/s37/b0256a01/www/forum/Themes/default/index.template.php:63) in /mnt/web_m/d33/s37/b0256a01/www/forum/Themes/default/Display.template.php on line 59
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 21, 2006, 01:13:29 AP
Can you please re upload index.template.php and Display.template.php

Also delete templateEval.php from your server.
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 21, 2006, 10:55:12 AP
I have done it..........but still having errors!
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 21, 2006, 01:00:22 IP
This must be an issue with the MKPortal bridge.  Makre sure you have made all the changes the instrustion states.

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 22, 2006, 12:59:03 AP
when i installed mk portal, the uper side of page where absent in forum then i uploaded another file and that worked!
and i want to clear that i have upgraded from phpBB 2.0.17 to SMF 1.1Rc1 then upgraded to SMF 1.1Rc2 this new SMF was working absolutly perfect but now it is having errors.
I have another forum on both are on same server on one hosting and both have same Mkportal and SMF installed and it is working as smooth as before! the difference between both of them are running SMF forum begining and i have upgraded from phpBB.
this is the full detail that can i provide
and also when i was on phpBB i had errors when posting messages or checking posts That error was in "post.php".
So now Can you have any suggestions for me!
I want to take ride of this error!

Thanks
Toufique Ahmed
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 22, 2006, 01:08:35 AP
Did you check to see if the integration work in RC2.  It might not be compatible with RC2.

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 22, 2006, 01:27:50 AP
This integration had worked perfectly for about 2 week sor so for RC2!
It is posible that it could have problem!
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 22, 2006, 01:29:52 AP
Well if it worked before it should't just breake just like that.  What I would suggest is you upload the upgrade package and ins tall the intrgration again.

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 22, 2006, 01:53:36 AP
okay i am goin to try it!
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 22, 2006, 01:55:07 AP
Please report back with the results :)

-JayBachatero
Otsikko: Re: Help! I am having error....
Kirjoitti: Toufique Ahmed - tammikuu 22, 2006, 02:15:11 AP
Succeed :D...........Forum is working Smoothly! :)
Thank you very much for you help
Otsikko: Re: Help! I am having error....
Kirjoitti: JayBachatero - tammikuu 22, 2006, 02:45:05 AP
You're welcome.  Glad to hear you got it fixed.

-JayBachatero