cannot log in to admin

Help with installation and general calendar setttings

cannot log in to admin

Postby ant_kelly » Mon Feb 28, 2011 12:37 am

Hi Chris
It looks like I have the dreaded windows server problem :cry:
I managed to get the calendar to appear by changing line 38 of ajax-common.inc.php from ac-includes/ajax to ac-includes\ajax.
But when I try to log in to admin I am getting the error message ac-config.inc.php not found. I have tried every possible combination of forward and backslashes in ac-admin\index.php to define the constant AC_ROOT but cannot figure it out, I followed the thread that has the fix but nothing seems to work, can you help?
Thanks, Anthony
ant_kelly
 
Posts: 2
Joined: Mon Feb 28, 2011 12:13 am

Re: cannot log in to admin

Postby chris » Mon Feb 28, 2011 1:06 am

Hi,
If you send me a pm with your ftp details I will take a look.

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

Re: cannot log in to admin

Postby chris » Mon Feb 28, 2011 11:12 am

OK, thanks for the pm with your ftp details.
I have logged in and sorted out your problem.
Basically I have modified the block that defines the AC_ROOT constant to this:
Code: Select all
if(phpversion()<"5.3.0"){
   //   old php version
   $file    =    __FILE__;
   $break    =    explode(''.DIRECTORY_SEPARATOR.'', $file);
   $pfile    =    $break[count($break) - 1];
   $root   =   str_replace($pfile,"",__FILE__);
   $root   =   str_replace("".DIRECTORY_SEPARATOR."ac-admin","",$root);
   define("AC_ROOT", $root);
}else{
   define("AC_ROOT", str_replace("/ac-admin","/",__DIR__));
}

You will notice that I have used DIRECTORY_SEPARATOR for the slashes due to it being a windows server.

Whilst I was there I have also modified the css path to the background image for the day states. However bear in mind that you will need to change this again when you put the calendar in it's final location (assuming that this isn't going to be it's final location)

Let me know if you need any more help :)

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

Re: cannot log in to admin

Postby ant_kelly » Mon Feb 28, 2011 12:59 pm

Hi Chris
All seems to be working perfectly now.
Thanks for keeping the calendar free and also for the awesome support.
I just used your donate button to buy you a beer :D
Anthony
ant_kelly
 
Posts: 2
Joined: Mon Feb 28, 2011 12:13 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron