Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support A few problems
Disharmony
Posted on 08 Jun 2008, 03:11:30

Access: Member
Total Posts: 3
Joined: 2008-06-07

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

Thanks to anyone who could help! :)
#257
Chris
Posted on 08 Jun 2008, 03:32:35

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 :happy:) the file you need to include is 'index.php'
#258
Disharmony
Posted on 08 Jun 2008, 04:03:39

Access: Member
Total Posts: 3
Joined: 2008-06-07

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)

Here's my code BTW:

Headlines (Humor)
Code:
<?PHP
$template = "Headlines";
$cat = 'Humor';
include("news/index.php");
?>

Headlines (Classic)
Code:
<?PHP
$template = "Headlines";
$cat = 'Classics';
include("news/index.php");
?>

Displaying the news
Code:
<?PHP
$cat = 'Humor';
include("news/index.php");
?>

PS: I have Friendly URLs turned on.
#259
Last edited by Disharmony at 2008-06-08 06:01:20 Reason:
Network-13.com © 2013