Issue with CNR

Report bugs and errors in this forum.

Issue with CNR

Postby mdfro » Tue Mar 16, 2010 12:46 am

I recently switched hosting from Godaddy to justhost. CNR worked perfect with Godaddy. I copied the database so i didnt lose any of the data, and got everything moved over to justhost.

Im getting this error message on the main page. Keep in mind ive search every article for the past two days trying to figure this out. Im using CNR 2.4.5 with the mega plugins. (ive used godaddy version, and also the other version) currently imusing the godaddy optimized version since it seems to be the only one working properly.

I beleive I had a windows server with godaddy and I beleive that justhost is linux.

So heres how i have my index.php setup.


Code: Select all
<?php include('/news/head.php'); ?>
</head>


Here is how i have show_news included on my site which works.

Code: Select all
<?php
$number = 10;
include 'news/show_news.php';
?>



I cant use $cutepath to include the path to the script.
I get errors where i want the news to display when i use $cutepath.


This is the error in the header im receiving now... keep in mind my news is showing on my site perfectly.

Warning: include(/news/head.php) [function.include]: failed to open stream: No such file or directory in /home/broproj1/public_html/index.php on line 14

Warning: include() [function.include]: Failed opening '/news/head.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/broproj1/public_html/index.php on line 14




Any help would be appreciated.
mdfro
 
Posts: 4
Joined: Mon Mar 15, 2010 11:53 pm

Re: Issue with CNR

Postby DarkSlim » Tue Mar 16, 2010 9:20 am

You need to include the head before everything in the page at all
even before the html or head tags! try it
If still not working try to include the head like this (without the / in the start):
Code: Select all
<?php include('news/head.php'); ?>

You can try the include $cutepath.'/show_news.php'; again

Also check that the relative include paths are right, and umm if still you
have a problem you can also ask your host to check it out, maybe they
need to adjust some stuff
Check that you game the needed permissions to the needed folders
and files after installation:
* CHMOD 777 the folders cache/ and example/ and data/ and all files and folders in the data/ folder
* CHMOD 644 the index.php


Hope it helps, :)

Darkslim
User avatar
DarkSlim
 
Posts: 296
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby mdfro » Tue Mar 16, 2010 4:28 pm

I fixed the issue myself, took me a few days but i did it.

I have a recent forum activity script that was interfering with cutenews.

Is there a certain way to include this? I read on here about the $static variable.

The only other issue that im having is with cnr and phpbb3 integration. It worked fine when I was with godaddy but when i switched servers it gives me an error. Database errpr while CuteNewsRU user registration.
mdfro
 
Posts: 4
Joined: Mon Mar 15, 2010 11:53 pm

Postby mdfro » Tue Mar 16, 2010 7:06 pm

Removing head.php and using

Code: Select all
<?php
$number = 10;
require 'news/show_news.php';
?>


Fixes the issue.

Is head.php that important? If it is how do i get it included without causing other problems?
mdfro
 
Posts: 4
Joined: Mon Mar 15, 2010 11:53 pm


Return to Bugs and errors



Who is online

Users browsing this forum: No registered users and 0 guests

cron