View Full Version : Moving to new server
jenny311
07-30-2011, 05:59 PM
I am currntly moving to a new server and moving the calendar is not going smoothly. I uploaded all the files and had several errors and issues, I have gotten past most of them but I am still having some problems.
First I am unable to add events. When I save a new event, it simply goes back to the calendar with the event not saved.
Second on the page that displays the events, the top of the page is fine. I have my calendar legend, my drop down to choose an event type, the dropdown to choose a date and my grid calendar, but the events are not listed below instead I get the following error.
_____________
Warning: fread() [function.fread (http://www.easyphpcalendar.com/forums/function.fread)]: Length parameter must be greater than 0 in /home/rnkserve/public_html/calendar/functions/listings.php on line 108
_____________
I downloaded everything from the old server in binary, and uploaded to the new server in binary.
There could be other errors and issues, that I have not found yet!
Please note on the new server, I have not redone the license key yet as the new server is not live and the calendar is running live on the old server. Further, with the DNS pointing to the old server I am viewing and working through an IP address in my browser and not a domain name could either the license key or the IP be my issue?
Brian
07-30-2011, 08:05 PM
Try this FAQ:
https://www.easyphpcalendar.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=9
(I'm going to remove your other three forum posts...)
jenny311
07-30-2011, 08:41 PM
Hi Brian,
Thanks for the reply... strangely I am unable to see any of my posts on my main computer and only this posts on this computer... but if you say there were three there probably were as I tried to submit my post many times!
jenny311
07-30-2011, 08:53 PM
OK... read the article and my Paths in calendar.php are as follows:
/home/username/public_html/calendar/
http://184.173.241.2/~username/calendar/
I am still unable to add an event to the calendar. I can go to the page to add an event, but it is not there once it is added.
I still see the following error on the page I display the events where the events should be listed under the calendar:
Warning: fread() [function.fread (http://184.173.241.2/~rnkserve/function.fread)]: Length parameter must be greater than 0 in /home/rnkserve/public_html/calendar/functions/listings.php on line 108
But I am now able to access the setup area.
Brian
07-31-2011, 04:34 PM
What is the URL to your calendar?
http://184.173.241.2/~username/calendar/ is not working...
jenny311
07-31-2011, 05:38 PM
Hi Brian,
http://184.173.241.2/~rnkserve/calendar/events/index.php
The events can be viewed at:
http://184.173.241.2/~rnkserve/events.php
(Please ignore broken images and styling, i have only uploaded the calendar nothing else, no pages, style sheets, images etc)
Let me know if you need me to give you my user name password through the support ticket system.
jenny311
07-31-2011, 08:29 PM
I have also noted that on the new server, it does not show all the event types when you visit:
http://184.173.241.2/~rnkserve/events.php
And many of the events are missing.
Is this a limitation of the fact that I have not refreshed the license key. If you visit the link bleow (this is the page the calendar was moved from) will see there are many more events and they are all viewed when you visit the page without choosing a specific category.
http://www.rnkdistributing.com/events.php
Brian
07-31-2011, 09:17 PM
Your URL path should be "http://184.173.241.2/~rnkserve/events.php (http://184.173.241.2/%7Ernkserve/events.php)".
Only one event will be seen for any given month if you do not have a license key.
jenny311
07-31-2011, 09:51 PM
I changed the url path to:
http://184.173.241.2/~rnkserve/events.php/
As you suggest above and I still get the same error on the events.php page:
Warning: fread() [function.fread (http://www.easyphpcalendar.com/forums/function.fread)]: Length parameter must be greater than 0 in /home/rnkserve/public_html/calendar/functions/listings.php on line 108
And Now when I go into the admin and click on a date to add an event I get a page can't be found with the new path you suggested.
So it seems that http://184.173.241.2/~rnkserve/calendar/ is the better path to use.
It works on the server it is being moved from.
On the original server I have the following setup and it works fine:
serverPath="/home/content/username/html/calendar/
$urlPath="/calendar/
Using this setup on the old server I am able to access the following page were people can view my events:
http://www.rnkdistributing.com/events.php
And the following page to add and edit events:
http://www.rnkdistributing.com/calendar/events/index.php
jenny311
08-02-2011, 04:30 PM
Any further ideas of how I can get this working? I need to move forward on this project. Am I better off opening a support ticket. I am not opposed to paying for support if need be.
Brian
08-02-2011, 04:39 PM
Sorry for my typo. The path should be "http://184.173.241.2/~rnkserve/calendar/"
Is there something else not working?
jenny311
08-02-2011, 04:46 PM
OK... I have switched back to that path and it solved most of the problems. But I still get the following error on the page that displays the events:
Warning: fread() [function.fread (http://www.easyphpcalendar.com/forums/function.fread)]: Length parameter must be greater than 0 in /home/rnkserve/public_html/calendar/functions/listings.php on line 108
Seen here:
http://184.173.241.2/~rnkserve/events.php
Brian
08-02-2011, 04:48 PM
That line reads your list mode template. Are your templates there and is the name correct?
jenny311
08-02-2011, 05:52 PM
Are we reffering to /functions/listings.php
If so yes, it was downloaded in binary mode from the server that it is working correctly on and uploaded in binary. I just tried changing the permissions on that file to 755 to see if that would help, but it did not.
jenny311
08-02-2011, 06:01 PM
Aside from the error reading listings.php (see above post)
I have also nooticed that on the old server I was able to mouse over a day on the calendar/events/index.php page and the events for that day would be displayed, from there I could click on edit or delete, this function is no longer there, so I am unable to edit or delete events. Is this a limitation of not having put in my license key yet, or is it another issue?
Brian
08-02-2011, 06:22 PM
Are we reffering to /functions/listings.php
If so yes, it was downloaded in binary mode from the server that it is working correctly on and uploaded in binary. I just tried changing the permissions on that file to 755 to see if that would help, but it did not.
They would be in the templates directory. Specifically, you need the template file that matches the template you've specified in your List Mode integration code.
Brian
08-02-2011, 06:23 PM
Aside from the error reading listings.php (see above post)
I have also nooticed that on the old server I was able to mouse over a day on the calendar/events/index.php page and the events for that day would be displayed, from there I could click on edit or delete, this function is no longer there, so I am unable to edit or delete events. Is this a limitation of not having put in my license key yet, or is it another issue?
This is not a limitation of the trial. Make sure you copied over the overlib directory.
jenny311
08-02-2011, 07:03 PM
OK making progress... The modern.php was in my new templates directory but strangely it uploaded 0kb of the file, so I uploaded it again and it now works. :-)
The only issue left with this move is the rollover on calendar/events/index.php, that lists all the events and allows me to choose an event to delete or edit.
I checked the server and the following directory is on the new server:
/calendar/overLIB/
with the following files:
index.htm 1kb
overlib.js 49kb
overlib_anchor.js 9kb
overlib_hideform.js 5kb
overlib_mini.js 36kb
Which matches the server where everything is working.
Brian
08-02-2011, 11:15 PM
Please open a support ticket so I can get your login information to see your Event Manager.
jenny311
08-02-2011, 11:22 PM
No problem
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.