Calendar doesn't load (loading gif only)

Help with installation and general calendar setttings

Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 3:50 pm

I installed calendar but I can see only that.....
http://www.chataonline.sk/kalendar/?id_item=1&lang=sk

Somebody help me?
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm

Re: Calendar doesn't load (loading gif only)

Postby chris » Sat May 08, 2010 4:00 pm

Hello,
It is not loading because the ajax file that actually loads the calendar month data is not on your server or at least is not where the code is looking for it.
The code is looking here:
http://www.chataonline.sk/kalendar/ac-i ... r.ajax.php
Upload the file to that location and everything should work.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 4:12 pm

Hello, thanks for quick answer.
I controlled it, but I can see through my ftp client file calendar.ajax.php on location:
http://www.chataonline.sk/kalendar/ac-includes/ajax/calendar.ajax.php

code is:
<?php
/***********************************************/
/*
File: calendar.ajax.php
Author: cbolson.com
Script: availability calendar
Version: 3.02
Url: http://www.ajaxavailabilitycalendar.com
Date Created: 2009-07-29
Date Modified: 2010-01-30

Use: Called via ajax to draw calendar

Receives: $_REQUEST["id_item"] - id of the item
$_REQUEST["month"] - calendar month
$_REQUEST["year"] - calendar year
*/
/***********************************************/

// include common file for ajax settings
$the_file=dirname(__FILE__)."/ajax-common.inc.php";
if(!file_exists($the_file)) die("<b>".$the_file."</b> not found");
else require_once($the_file);

// define variables
$id_item = $_REQUEST["id_item"];
$the_month = $_REQUEST["month"];
$the_year = $_REQUEST["year"];

// required data
if($id_item=="") die("no item defined");
if($the_month=="") die("no month defined");
if($the_year=="") die("no year defined");

// create the calendar
echo draw_cal($id_item,$the_month,$the_year);
?>
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm

Re: Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 4:46 pm

I tried other hosting:
http://chatahnilcik.sk/calendar/
The same problem.
Version of calendar is 3.03.02
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm

Re: Calendar doesn't load (loading gif only)

Postby chris » Sat May 08, 2010 6:15 pm

The error that you have now (and possibly before, I probably didn't look closely enough) is that your server is configured without the cal_days_in_month() function.
Please take a look at this thread for the reason and solution.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 6:34 pm

Hello, I found problem.... my server has PHP version 3.4... Now I put this calendar to server with PHP 5+
http://www.sexipradlo.eu/calendar/
and it works...
maybe some control of php version in instalation is needed..
thank for help
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm

Re: Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 6:55 pm

...now I have other problem
if i click on date to change state, there are only two states, booked and booked am....
http://www.sexipradlo.eu/calendar/
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm

Re: Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 7:01 pm

options for Click Method: click-through (cycle through all states)
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm

Re: Calendar doesn't load (loading gif only)

Postby chris » Sat May 08, 2010 8:48 pm

This is another server specific problem. However in this case I have not managed to work out why it differs from server to server.

This is the solution:

In the ajax file that updates the states:
"ac-includes" > "ajax" > "update_calendar.ajax.php"
Chaning this code (line 85 approx):

Code: Select all
foreach($list_states as $id=>$val){
        if($id==$current_state_id) break;
        //      advance the pointer to next
         next($list_states);
         //     stop if id is the same as current
}


to this:

Code: Select all
foreach($list_states as $id=>$val){
   next($list_states);
   if($id==$current_state_id) break;
}


As you can see, I have just swapped the order of the events round.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Calendar doesn't load (loading gif only)

Postby apredsa » Sat May 08, 2010 9:06 pm

It works, thanks.
apredsa
 
Posts: 12
Joined: Sat May 08, 2010 3:43 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron