TinyPortal

Development => Support => Topic started by: dimip77 on December 08, 2006, 02:20:52 PM

Title: I've done an error and I need help
Post by: dimip77 on December 08, 2006, 02:20:52 PM
I've just done a very stupid error! I was in the settings of the SHOUTBOX, and, where I was supposed to write the limit of how many shouts have to be shown in the box, (I wanted to change from the limit of 5 shouts to be shown, to 10 shouts) instead of just writing "10", I wrote "Last 10".
After saving that change nothing works anymore in TP, neither the SMF forum works.
I cannot reach any page and anywhere I go this message gets displayed in the screen:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ultimi 10' at line 1
File: D:\Inetpub\webs\ighnobilicom\public\forum\Sources\TPortal.php
Line: 589


What can I do? Please help.
I tried to modify that TPortal.php file searching for "Last 10" but I cannot find it, so I don't know what to do to correct my stupid mistake!  :'(
Thank's for anyone will help.
Ciao

PS. I have smf 1.1 and tp 0.9.7
Title: Re: I've done an error and I need help
Post by: stormlrd on December 08, 2006, 02:24:26 PM
Do you kinow how to access your database and how to browse and edit it? that one is gonna have to reset manually I believe.
Title: Re: I've done an error and I need help
Post by: dimip77 on December 08, 2006, 02:35:05 PM
Quote from: StormLrd on December 08, 2006, 02:24:26 PM
Do you kinow how to access your database and how to browse and edit it? that one is gonna have to reset manually I believe.

Quote I know how to access it, I kind of (very little) know how to browse it, I've no idea how to edit it. I know how to use html but I know nothing about MYsql.
At the most I can give someone than can help me in PM the link, the ID, and the password to acces that... Gosh I've done something really not smart this time.
Title: Re: I've done an error and I need help
Post by: stormlrd on December 08, 2006, 02:40:00 PM
No need follow these steps exactly:

cpanel --> mysql databases --> phpmyadmin --> select database you created for your forum from list on left--> Select again from the left smf_tp_settings --> select from top right browse --> scroll down to ---shoutbox_limit-- and click the pencil to edit it --->change this to 10 in the value field--->Click go/save and your done and can close out of everything and continue in your forum with out issue.
Title: Re: I've done an error and I need help
Post by: dimip77 on December 08, 2006, 02:51:06 PM
Done it! Everything returned to work just fine!  :up:
Thank you soo much StormLrd !!!  :)
Title: Re: I've done an error and I need help
Post by: stormlrd on December 08, 2006, 02:52:04 PM
Your welcome I posted this as an issue needing a fix sense it should of checked for the text you put in.
Title: Re: I've done an error and I need help
Post by: agridoc on December 08, 2006, 02:57:11 PM
I saw that you did it. A simpler solution, just in case, for anyone else

Try
[your domain name and SMF dir]/index.php?action=tpadmin;sa=shoutbox

It probably will not open left panel (unless settings changed) so you can edit back.

It seems that you found a bug.
Title: Re: I've done an error and I need help
Post by: stormlrd on December 08, 2006, 02:59:10 PM
good idea didnt think of that lol thanks agridoc
Title: Re: I've done an error and I need help
Post by: bloc on December 08, 2006, 03:53:14 PM
I will correct this for 0.9.7 and update the package.