Loading...
 
Skip to main content

Architecture / Installation


mysql error

This morning I checked the sites I run under TikiWiki 1.8.1 version, and oh surprise, one was functionning (http://x-over.tvQuestion) and the other not (http://foot-steps.infoQuestion).

I get the following error

Warning: mysql error: 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 'and `lang`='en'' at line 1 in query:
select `tran` from `tiki_language` where `source`=? and `lang`=?
in /www/f/footsteps/htdocs/lib/tikidblib.php on line 125
Values:
Array ( 0 => 1 => en )
$result is false
$result is empty


I know my service provider went from PHP 4.3.4 to 4.3.5, but that's all . Should not affect my database. It was working fine just a few hours before. Can anyone help before I reinstall the whole thing..

Thanks in advance

Wuhu...this query looks like the effect of using database translations.
Last time I tested this generated something like 100 extra DB queries per page, so you obviously want to turn it off anyway. It could be a bug but this feature isn't meant for real use anyway.

> Chealer9:
> Wuhu...this query looks like the effect of using database translations.
> Last time I tested this generated something like 100 extra DB queries per page, so you obviously want to turn it off anyway. It could be a bug but this feature isn't meant for real use anyway.


Could be it. I did check it to try it, but forgot to check it out. So, it basically means reinstalling since I have no access to the admin pannels (or anything else). Thanks. I will keep you posted


> > Chealer9:
> > Wuhu...this query looks like the effect of using database translations.
> > Last time I tested this generated something like 100 extra DB queries per page, so you obviously want to turn it off anyway. It could be a bug but this feature isn't meant for real use anyway.
>
>
You were right. I reinstalled, without db translation, and it works. So, good guess.Thanks a million.


> Chealer9:
> Wuhu...this query looks like the effect of using database translations.
> Last time I tested this generated something like 100 extra DB queries per page, so you obviously want to turn it off anyway. It could be a bug but this feature isn't meant for real use anyway.


Could be it. I did check it to try it, but forgot to check it out. So, it basically means reinstalling since I have no access to the admin pannels (or anything else). Thanks. I will keep you posted


> > Chealer9:
> > Wuhu...this query looks like the effect of using database translations.
> > Last time I tested this generated something like 100 extra DB queries per page, so you obviously want to turn it off anyway. It could be a bug but this feature isn't meant for real use anyway.
>
>
You were right. I reinstalled, without db translation, and it works. So, good guess.Thanks a million.


Note that (particularly when you'll be in production) a reinstall isn't necessary. It is not rare that someone breaks its Tiki by activating a feature. In this case, you could have edited the lang_use_db value in tiki_preferences.
There are good chances that you would have saved a reinstall asking this to our IRC channel #tikiwiki.
Join us 😉

Hi Chealer9

It took me a couple hours work, and took advantage of it to rethink the custom menus, and which features were really meaningfull for the public I aim at. Like the say in Spain, paso a paso😉
And yes, I will join, and hopefully when my tight schedule allows for it, help the community one way or the other.😎


Hi Chealer9

It took me a couple hours work, and took advantage of it to rethink the custom menus, and which features were really meaningfull for the public I aim at. Like the say in Spain, paso a paso😉
And yes, I will join, and hopefully when my tight schedule allows for it, help the community one way or the other.😎