Just installed this earlier and I encountered a few problems:
1. How do I stop it from inserting \ whenever I use quotation marks?
2. When I add a new category, it adds it successfully but then 3 lines of this pop up. I have to login again just to get rid of it:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 10 in
3. I'm also getting this error when including files:
Warning: include(news/show_news.php) [function.include]: failed to open stream: No such file or directory in /home/*/public_html/*/index2.php on line 100
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Hi Disharmony,
1. The slashes appearing when you add quotes is a PHP setting called Magic Quotes you need to disable. There are a couple ways of doing this. First way is, if you have access to your servers 'php.ini' file, edit it and search for 'magic_quotes_gpc', you just need to change it to Off so it should read 'magic_quotes_gpc = Off'.
If you don't have access to the 'php.ini' file what you can then do is, create a file called '.htaccess' and inside it put these 2 lines
Code:
php_flag register_globals off
php_flag magic_quotes_gpc off
Save it then upload it to the main directory of your site, this has the same affect as editing the 'php.ini' file
2. The error message showing up when you create a cateogory is a problem I've noticed when servers have Register Globals enabled which I would always recommend disabling. The '.htaccess' file I mentioned above solves that problem, of course if you have access to the 'php.ini' search for 'register_globals' and set it to off 'register_globals = Off'
3. There is no 'show_news.php' (this isn't cutenews ) the file you need to include is 'index.php'
Thanks, fixed 1 and 2 although I had to use php.ini instead.
As for the news (sorry about that BTW :p) see I'm suppose to have headlines by a certain category show up on the sidebar -- recent for the "humor" cat, and Classics in well, "classics" but only one "humor" shows up. This is the error message on "classics"
Code:
Fatal error: Cannot redeclare makefriendly() (previously declared in /home/*/public_html/*/news/index.php:21) in /home/*/public_html/*/news/index.php on line 29
Also, the main part where the news should be is all blank even though I have like 2 articles posted already (1 for each cat)