any idea what is causeing this path error?

Visto 54 veces
Saltar al primer mensaje no leído

GaG

no leída,
16 feb 2010, 19:00:3816/2/10
a 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

no leída,
16 feb 2010, 19:56:4916/2/10
a 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

no leída,
16 feb 2010, 20:16:4316/2/10
a 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

no leída,
17 feb 2010, 3:51:3217/2/10
a 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

no leída,
27 feb 2010, 11:05:1027/2/10
a 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

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos