Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Solution to the login problem for CutenewsRU 2.3.3

 
Reply to topic    Forum Index » FAQ View previous topic
View next topic
Solution to the login problem for CutenewsRU 2.3.3
Author Message
sunburst



Joined: 29 Sep 2005
Posts: 75
Location: UK

Post Solution to the login problem for CutenewsRU 2.3.3 Reply with quote
If you are one of these unfortunate user (like myself) that can't seem to login to the admin system after install.



Here is the quick fix, not from me but total credits and respect to Jim the developer of phpfreenews (http://www.phpfreenews.co.uk) :



Jim wrote:


When I installed it, I was asked to supply table prefixes, database name, etc. I entered a database name of cute and left the table prefixes as cute_ (which the default).



However! The software created the tables WITHOUT the prefix!



So, to enable login you need to edit

\inc\db\mysql.class.php and change line 146 from



$query .= 'from '.$this->prefix.$arg['table']."\n";

to



$query .= 'from '.$arg['table']."\n";



But this will only fix login (as I discovered). To effect a more permanent solution you need to set the $this->prefix value to nothing, and the easiest way to do this is to edit the data/config.php file and set:



$config_dbprefix = "";





(around line 29).



It then seems to work properly.



Hope this helps.



Jim





I've tried it out and it worked for me.



Thank you,



Sunburst
Thu Oct 20, 2005 1:12 am View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
If it's working for you - great! Very Happy



But I wonder why does the script behave so differently?



I bet if I applied those modifications it wouldn't work anymore for me. Confused
Thu Oct 20, 2005 10:43 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » FAQ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.