| Author |
Message |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
HELP! Pages not loading cutenews!! |
|
Hi, urgent help needed.
On my website, www.pwresource.com, any page that has cutenews included in it stops loading when it hits the first cutenews include. For example on the home page, it loads the header, the top banner advert, but then in the code is the cutenews include to show latest news and it doesn't load that, and stops loading the entire page. It just says "done" when it obviously isn't.
Also, when trying to add news, which is when I first discovered there was a problem, the category tick boxes don't appear, or anything on the right hand side other than the date of the post. I added one news story, and all worked fine, then went back to Add to add another one, and noticed some of the elements weren't showing. Then going to my website I saw that it wasn't loading properly. Pages without any cutenews on such as http://www.pwresource.com/siteinfo.php display fine, it's just any pages with cutenews stop loading when it hits cutenews in the code.
Any idea what this could be, I need this sorted as quickly as possible.
Any help would be awesome!!
Thanks,
Hazzy, PWResource.com
PS, don't quote me on this but i'm fairly sure that when the pages on the site stop working the include leads to show_news.php, so maybe if you need a starting point you might be able to look at that. I'm not sure if when you add news it uses that page, cause if it does then obviously it's something to do with that file and I can post the code.
_________________ Cutenews.RU n00b. |
|
| Tue Jul 17, 2007 10:36 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
I looked at the source code of your index.php page and I couldn't see any includes to cutenews.ru at all. You're going to want this somewhere at the top of your page
<?php include("path-to-cutenewsru/head.php"); ?>
Then add this code in above or below that ad.. wherever you want to place it your news.
 |  | <?php
$number = "X";
$category = "X";
$template = "name-of-template";
include("path-to-cutenewsru/show_news.php");
?> |
If that doesn't work then write back so we can see where it's malfunctioning.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Jul 18, 2007 12:56 am |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
I've definitely got all the includes in the code, but you're right it doesn't show in the source code if you view it online.
It's definitely all there though.
In the source code it stops loading after <div id="latestnews1">, but it actually continues for another 150 lines more code or so, stopping right before the first cutenews include.
 |  | </div>
<div id="latestnews1">
<?
$number = 1;
$category = '10';
$template = 'MainHeadlines';
include $cutepath.'/show_news.php';
?>
</div>
..... |

_________________ Cutenews.RU n00b. |
|
| Wed Jul 18, 2007 6:59 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
I'm not exactly sure what it's doing that but what I can say is that this is how I do it and it always works:
 |  |
<div id="latestnews1">
<?php
$number = "1";
$category = "10";
$template = "MainHeadlines";
include ("admin/show_news.php");
?>
</div> |
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Jul 19, 2007 6:04 am |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
I tried changing to that, still the same problem.
Would doing any of this explain why only part of the Add News screen shows?
And the same stuff doesn't show on the Edit News page when you try and edit a story.
BTW, I should probably specify that i've been running this site for over a year now with no real problems, and it's certainly never done this before. I didn't change any of the code, it just randomly stopped working.
I've been looking through some of the code but i'm not exactly an expert. I can't see anything that looks strange or wrong to me though...
EDIT - here's a screenshot of the Add News page.
http://img218.imageshack.us/img218/1158/07192007114758ac9.jpg
_________________ Cutenews.RU n00b. |
|
| Thu Jul 19, 2007 10:46 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
That's weird... you've been using cutenews.ru with your site for over a year?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Jul 19, 2007 3:32 pm |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
Yup, the current coding has been the same for a few months now, and i've been using cutenews on the previous web design for up to a year.
_________________ Cutenews.RU n00b. |
|
| Thu Jul 19, 2007 4:47 pm |
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 106
|
|
|
|
Try checking the permissions (CHMOD) again. If they are all 777, contact your host, and ask if they've upgraded to php 5, or if they have increased/changed any security options lately.
|
|
| Sat Jul 21, 2007 12:57 pm |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
UPDATE:
I've managed to get the site working again, although the layout is a bit messed up for some reason. I doubt anyone here will be able to help me with that without knowing what it is supposed to look like though.
I ended up just deleting all the files, and uploading them again. It fixed it just about, still had to do a few fixes on certain files and CHMOD some stuff to finally get it in a workable state. Anyway, since doing that I thought i'd try to use a backup of the data folder I took AFTER the site stopped working, in the hope it would maybe restore something i'd forgotten about that would fix the site layout. When I uploaded the data folder, overwriting the fresh copy i'd just uploaded, the site stopped working again. So I went through each file, replacing the fresh file each time, and found out the xfields-data.php file was causing the problem. I don't know why though. The fresh copy of the file is 123kb, but the one i took after the site stopped working is 72kb...no idea whats happened to it.
Hopefully now i'll be able to stumble my way towards how the site is supposed to look now i've got it up again.
Thanks for all the help. 
_________________ Cutenews.RU n00b. |
|
| Sun Jul 22, 2007 1:27 am |
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 106
|
|
|
|
Might have gone corrupt on you. That stuff happens from time to time with text documents on web servers, so I'd go with the cutefields add on instead, which utilizes a MySql database instead of a text document.
Glad you got it somewhat working, though 
|
|
| Mon Jul 23, 2007 3:21 pm |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
Okay, another problem.
The templates aren't updating, I figure thats the problem with the layout.
On the index page the Editorials section is supposed to go:
*editorial title*
by *author*
Instead it was all on one line.
So I tried adding a new line after the title, nothing. Tried another new line, and still it stayed on one line.
Any ideas why the templates wouldn't update when I changed them?
_________________ Cutenews.RU n00b. |
|
| Mon Jul 23, 2007 9:30 pm |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
UPDATE
The templates folder is in the data folder, so I thought i'd check the CHMOD permissions of that folder, cause I know it's supposed to be 777.
I looked, and it was on 0. So I changed it to 777 and applied to all subfolders, but then signed out and back in again and it'd reverted back to 0.
I can't get it to stay on 777.
Anyone think of any reasons for this?
_________________ Cutenews.RU n00b. |
|
| Tue Jul 24, 2007 1:53 pm |
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 106
|
|
|
|
Did you remember to clear the catche?
|
|
| Tue Jul 24, 2007 2:42 pm |
|
 |
Hazzy
Joined: 12 Aug 2006 Posts: 26
|
|
|
|
THANK YOU!!! 
_________________ Cutenews.RU n00b. |
|
| Tue Jul 24, 2007 11:21 pm |
|
 |
|