Solution to the login problem for CutenewsRU 2.3.3

Frequently Asked Questions (read only)

Solution to the login problem for CutenewsRU 2.3.3

Postby sunburst » Thu Oct 20, 2005 1:12 am

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
sunburst
 
Posts: 75
Joined: Thu Sep 29, 2005 5:57 pm
Location: UK

Postby FI-DD » Thu Oct 20, 2005 10:43 am

If it's working for you - great! :D



But I wonder why does the script behave so differently?



I bet if I applied those modifications it wouldn't work anymore for me. :?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany


Return to FAQ



Who is online

Users browsing this forum: No registered users and 1 guest