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 Problem installing
Jkiwanuka
Posted on 18 May 2009, 12:19:29

Access: Member
Total Posts: 6
Joined: 2009-05-18

I've followed the installation instructions but I'm getting weird undefined index errors all over the place. ANy clue as to why this is?

PHP Version 5.2.9-1, MYSQL 5.0

Thanks
#551
Atomxy
Posted on 18 May 2009, 15:33:51

Access: Member
Total Posts: 12
Joined: 2009-05-12

Hello...

The scritp have a lot of undefined variables…

You have two ways to fix this…

1.

Open the script, identify all variables that can be undefined, and put a code like this in the first line:

Code:
If(!isset($variable)) {
$variable = '';
}

This will set the variable value to blank, only if it is undefined.

2.

Open your PHP.ini, and find this line:

error_reporting = E_ALL

Set to:

error_reporting = E_ALL & ~E_NOTICE…

In this way the PHP will not show the notices.

:)
#552
Jkiwanuka
Posted on 19 May 2009, 10:30:04

Access: Member
Total Posts: 6
Joined: 2009-05-18

Hi I managed to work this out for myself after some investigation:cheese:. But now I have a new problem, I added some news items to test it, but the only one that showed up was the original "success you have installed...."

When I deleted that message all i get is 'powered by n13 news'
#553
Jkiwanuka
Posted on 19 May 2009, 11:33:06

Access: Member
Total Posts: 6
Joined: 2009-05-18

Seems i have to work through this step by step. Solved the news not showing part by putting in:

<?php
$cat = 'all';
include 'index.php';
?>


But now I'm getting an sql error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\n13news31\index.php on line 337
#554
Atomxy
Posted on 20 May 2009, 20:43:37

Access: Member
Total Posts: 12
Joined: 2009-05-12

Hello again...

This is a bug in the script...

To fix the mysql erros just put a @ in front of every $variable = mysql_result($query,0);, like this @$variable = mysql_result($query,0);...

:)

Bye bye... :cheese:
#557
Jkiwanuka
Posted on 29 May 2009, 15:05:32

Access: Member
Total Posts: 6
Joined: 2009-05-18

Thanks for that. I still have the issue of not being able to show news on the homepage - what code do I need?
#563
Network-13.com © 2013