any idea what is causeing this path error?

50 views
Skip to first unread message

GaG

unread,
Feb 16, 2010, 7:00:38 PM2/16/10
to Ajax Availability Calendar
C:\xampp\htdocs\webpages\english\php\calendar\ac-includes\ajaxac-
config.inc.php not found on index.php in all three boxes.

cbolson

unread,
Feb 16, 2010, 7:56:49 PM2/16/10
to Ajax Availability Calendar
Hi,
It looks like you are missing a slash after the "ajax" part of the
path.
Check where you have configured this (manually by the looks of things)
in the "ac-includes" > "ajax" > "ajax-common.inc.php" file.

Chris

Garry

unread,
Feb 16, 2010, 8:16:43 PM2/16/10
to ajax-availabi...@googlegroups.com
nah havn't touched that file, the only file I have modified so far is
ac-admin.index.php as I have to define path to root as that was also giving
me a error, had to add define("AC_ROOT",
$_SERVER["DOCUMENT_ROOT"]."/php/calendar/");

Garry

> --
> You received this message because you are subscribed to the Google Groups
> "Ajax Availability Calendar" group.
> To post to this group, send email to
> ajax-availabi...@googlegroups.com.
> To unsubscribe from this group, send email to
> ajax-availability-c...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ajax-availability-calendar?hl=en.
>

cbolson

unread,
Feb 17, 2010, 3:51:32 AM2/17/10
to Ajax Availability Calendar
Strange. the path that you are getting looks like a "windows" path
(due to the reverse backslashes) however the path that you say that
you have defined in tbe ac-admin index.php file uses forward
slashes....

Anyway, It looks like you will have to make the changes to the
cal.inc.php file manually to adjust the AC_DIR_ROOT path manually to
suit your server needs.
This is the line that you need to look for and adjust:
define("AC_ROOT", str_replace("ac-includes","",dirname(__FILE__)));

You will probably have the same problem with the ajax files that are
in "ac-includes" > "ajax"

Sorry to not be able to help more, I must admit to not understanding
why the initial error occurs if you haven't modified the file manually
but then again I don't really have much (read any) knowledge as to
server set up :(

Chris

George

unread,
Feb 27, 2010, 11:05:10 AM2/27/10
to Ajax Availability Calendar
Hi Chris ,

I had a quick look with this issue and it's to do with the way windows
reports it's paths, more importantly the slashes:
i.e.
UNIX: /var/www/mysite/
WINDOWS: C:\xampp\htdocs\calendar\

The best solution I came up with and maybe in a future version, you
could add windows compatibility as follows:
i.e. replace all:
__FILE__ --> str_replace("\\", "/", __FILE__)
__DIR__ --> str_replace("\\", "/", __DIR__)

It then works.
Kind Regards
Stephen Mackay

PS Great script

Reply all
Reply to author
Forward
0 new messages