Topic: News isn't updating

Hello!

On my website www.1kryss2.se I use cutenews on almost every page. It works fine! I have news in coloums and it´s updating if I post a news. BUT, in 3 pages of the website;

http://www.1kryss2.se/stryktips.php
http://www.1kryss2.se/lerick.php
http://www.1kryss2.se/ilpastore.php

the news didn't updates! why? There is only old news in the coloum? I really can't understand why?

Thanks

/Ola

Re: News isn't updating

Hello Ola,

So your news is not updating only on three pages? That's a rather odd issue. Could you please share your include codes for those three pages as well as the include code of a page where everything works? (For comparison purposes.)

Also, do those pages have any other PHP scripts (which the others ones possibly don't have)? It could be that they're interfering with CuteNews. Pasting the identical include codes in an empty file would answer that for us.

3 (edited by 2012-11-12 22:11:09)

Re: News isn't updating

Hello Ola,

So your news is not updating only on three pages? That's a rather odd issue. Could you please share your include codes for those three pages as well as the include code of a page where everything works? (For comparison purposes.)

Also, do those pages have any other PHP scripts (which the others ones possibly don't have)? It could be that they're interfering with CuteNews. Pasting the identical include codes in an empty file would answer that for us.

The page are exactly the same.. just renamed the page and change the categ. number in the php code. And every new page I create - rename the page and change the number i php code.. the news in the colum isen´t update. Thats old news. Weird

This is from a working page.. This php include is in the same row.. but different colums..

<?PHP
$category = "4";
$number = "5";
include("cutenews/show_news.php");
?>

<?php include("svart_spalt.php"); ?>

<?php include("reklam_right.php"); ?>


This php code is in "svart_spalt.php".. And it's that who didn't update on some pages..

<?php
  $PHP_SELF= 'show_nyheter.php';
  $static = true;
  $template = "Headlines";
  $number = "15";
  $category = "1,3,4,7,8";
  include("cutenews/show_news.php");
?>

<?php
  $static = true;
  $template = "Headlines";
  $number = "5";
  $category = "6";
  include("cutenews/show_news.php");
?>


This is from a not working pages.. Its the same. What is wrong.. why?

<?PHP
$category = "7";
$number = "5";
include("cutenews/show_news.php");
?>

<?php include("svart_spalt.php"); ?>

<?php include("reklam_right.php"); ?>

Re: News isn't updating

Thanks for the details. I'm at a loss for this one. In svart_spalt.php, try adding the following:

<?php
unset($start_from);
$PHP_SELF= 'show_nyheter.php';
$static = true;
$template = "Headlines";
$number = "15";
$category = "1,3,4,7,8";
include("cutenews/show_news.php");
?>

If that doesn't help, try copying the code from a page that does NOT work into a new .php page and only save those three includes. Does the news then show up properly? If not, try removing the $category parameter or setting it to another category. The more specific you can be about when that error appears the bigger our chances to locate the cause.

Re: News isn't updating

in case you use auto-archive or have archived news
https://cutephp.com/forum/index.php?showtop...st&amp;p=119574
Not sure if this bug is still present in CN1.5
I kinda left the forum quite a while ago.

6 (edited by 2012-11-17 13:05:42)

Re: News isn't updating

It still not working..

If I take

1kryss2.se/giant.php

At this site everything is working.. And if I change the category from 4 until 10. the wrong come again.

So, maybe it is something to do with the category number????

Posts: 6

Pages 1

You must login or register to post a reply

CutePHP Forums → Problem Solving / Help & Support → News isn't updating