View Full Version : Moved files to a new location
JackTheKnife
06-17-2009, 08:55 AM
I have got this error after moved files to new server:
Warning: require_once(/homepages/16/d130112372/htdocs/ND/calendar/functions/functions.inc.php) [function.require-once (http://www.easyphpcalendar.com/forums/function.require-once)]: failed to open stream: No such file or directory in /var/www/portal/public_html/calendar/calendar.php on line 37
Fatal error: require_once() [function.require (http://www.easyphpcalendar.com/forums/function.require)]: Failed opening required '/homepages/16/d130112372/htdocs/ND/calendar/functions/functions.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/portal/public_html/calendar/calendar.php on line 37
Any idea what can be wrong? There is a functions folder and functions.inc.php file inside.
Brian
06-17-2009, 10:02 AM
Check the Paths FAQ in my signature below. :)
JackTheKnife
06-17-2009, 01:02 PM
Thanks, I have got it to work, but only on-mouseover pop-up doesn't appear
link: http://www.dziennik.com/co-gdzie-kiedy
Brian
06-17-2009, 08:58 PM
I don't find the OL code in your page. See the Integration/Important section of the instructions.
JackTheKnife
06-17-2009, 09:13 PM
This is my code:
<?
$TOC=1;
$OL=1;
require("calendar.php");
?>
And Home Page has calendar with no on-mouseover pop-ups. Code for that page:
<div id="EPCcalendar" style="clear:both;">{php}$OL=1; $noNav="1"; require("calendar/calendar.php"); require("calendar/calendar.php");{/php}</div>
And both have OL code.
JackTheKnife
06-17-2009, 11:39 PM
OK - I found an issue - overLIB folder was saved as overlib (all lower case). I suggest to create gzipped downloadable file to avoid incorrect unzip file on *nix machines.
JackTheKnife
06-17-2009, 11:52 PM
BTW. Calendar generated by this code:
<div id="EPCcalendar" style="clear:both;">{php}$OL=1; $noNav="1"; require("calendar/calendar.php"); require("calendar/calendar.php");{/php}</div>
can not generate correctly UTF-8 EE charset (Polish name of Wednesday is missing).
http://img34.imageshack.us/img34/1607/easycal.jpg
ve9gra
06-18-2009, 07:20 AM
No, you do not have the $OL code... you cannot separate the commands...
The $CSS code is $CSS=1; require("calendar/calendar.php");
The $OL code is $OL=1; require("calendar/calendar.php");
The calendar code is then $TOC=1; require("calendar/calendar.php");
You cannot split those elements up. Having $TOC=1; $OL=1; require... is invalid.
JackTheKnife
06-18-2009, 09:16 AM
You mean I can use only $TOC=1 or $OL=1 in one time? Or this is correct:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<?php $CSS=1; require("calendar.php"); ?>
</head>
<body>
<?
$TOC=1; require("calendar.php");
$OL=1; require("calendar.php");
?>
</body>
</html>
Brian
06-18-2009, 11:38 AM
Both TOC and OL need to be followed by a calendar require.
The OL code should come immediately after the <body> tag, then the TOC code where you want the calendar to appear in your page.
JackTheKnife
06-18-2009, 11:52 AM
OK, I see.
JackTheKnife
06-18-2009, 01:10 PM
Anyway what about missing Polish charset?
ve9gra
06-18-2009, 04:27 PM
Put it directly in the config.inc.php.
JackTheKnife
06-18-2009, 08:05 PM
I have it and it is not working. Even when I put direct number to the character
Ś it is decoded wrong.
Brian
06-18-2009, 08:57 PM
Do you have the correct encoding set in the calendar Setup Manager?
JackTheKnife
06-18-2009, 09:07 PM
Yes, I have set to UTF-8. Is working everything else at the Events List and a big callendar, but not at the small one. You have a screenshot at the post #7.
Brian
06-19-2009, 10:31 AM
Can you post a link to the page with the small calendar?
JackTheKnife
06-19-2009, 01:47 PM
Can you post a link to the page with the small calendar?
Here at the bottom right corner: http://www.dziennik.com/
Brian
06-19-2009, 04:20 PM
Can you open a support ticket and send me your config.inc.php file?
JackTheKnife
06-19-2009, 04:47 PM
OK - I opened a support ticket
JackTheKnife
06-22-2009, 09:31 PM
That was strange - I need to open a ticket again because an old one disappeared
Brian
06-22-2009, 10:26 PM
I was going to write you here because all of my ticket replies kept bouncing... Maybe it'll work this time. :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.