Topic: It says: "Cannot find article with id: NUMBER"!

I have followed all instructions and am still getting a error  Can not find an article with id: 0...


Here is what i have and my link....


<?PHP

$number=1;

$category=1;

$reverse=FALSE;

$only_active=TRUE;

include("/home/vhockey/public_html/vhatest/frontpagenews/show_news.php");

?>


Visit My Website

Re: It says: "Cannot find article with id: NUMBER"!

Searching this forum will give:
https://cutephp.com/forum/index.php?showtopic=215

Re: It says: "Cannot find article with id: NUMBER"!



I saw this post but i am not that green on php code. Can you explain where these changes can be made?

Re: It says: "Cannot find article with id: NUMBER"!

A solution that might work


just before include('show_news.php');
although we can't predict the impact it'll have on the script that also uses the $id parameter.

Re: It says: "Cannot find article with id: NUMBER"!

I gave that a shot. Didnt work...  https://cutephp.com/forum/style_emoticons/default/mellow.gif

How is this changed?  "Easy fix: replace the $id variables in your page with $page, and change your links from ?id=... to ?page=... "

Re: It says: "Cannot find article with id: NUMBER"!

What about adding

unset($id);


just above the line that says

include(...)

?

Not sure if that's what FUNimations proposed but he then edited the quote?

Re: It says: "Cannot find article with id: NUMBER"!

Here's something that's using id too...
http://www.virtualhockeyassociation.com/vh...ampage.php?id=1

Ofc we already knew something else is using id, I just wanted to show what https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: It says: "Cannot find article with id: NUMBER"!

Here's something that's using id too...
http://www.virtualhockeyassociation.com/vh...ampage.php?id=1

Ofc we already knew something else is using id, I just wanted to show what https://cutephp.com/forum/style_emoticons/default/smile.gif



Yep... Well, i deleted cute news and installed it again and now it works...  https://cutephp.com/forum/style_emoticons/default/wink.gif

Re: It says: "Cannot find article with id: NUMBER"!

How is this changed? "Easy fix: replace the $id variables in your page with $page, and change your links from ?id=... to ?page=... "

it's just in case you sites navigation uses ?id=
to load a specific part of the site.

Another CN hack that i know to have caused trouble because of ID was the ajax star rater.
Though i thought to have changed that part of the code to besafe others.

Re: It says: "Cannot find article with id: NUMBER"!

it's just in case you sites navigation uses ?id=
to load a specific part of the site.

Another CN hack that i know to have caused trouble because of ID was the ajax star rater.
Though i thought to have changed that part of the code to besafe others.



Thanks guys for all your help...

Posts: 10

Pages 1

You must login or register to post a reply

CutePHP Forums → Problem Solving / Help & Support → It says: "Cannot find article with id: NUMBER"!



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.