 |
 |
 |
 |
 |
| Author |
Message |
sunburst
Joined: 29 Sep 2005 Posts: 75 Location: UK |
|
Solution to the login problem for CutenewsRU 2.3.3 |
|
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) :
 |  |
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
If it's working for you - great!
But I wonder why does the script behave so differently?
I bet if I applied those modifications it wouldn't work anymore for me. 
|
|
| Thu Oct 20, 2005 10:43 am |
|
 |
|
|
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
|
|
 |
 |
 |
|