• RSS
  • Facebook
  • Twitter
  • Linkedin
Home > Error Finding > Error Finding Webcalendar Tables

Error Finding Webcalendar Tables

Not sure what I should try next. empty ( $webcalendar_session ) ) { $encoded_login = $webcalendar_session; if ( empty ( $encoded_login ) ) { // invalid session cookie $session_not_found = true; } else { $login_pw = split('\|', decode_string I would rather use v1.1.6 for security reasons. I must confess limited Drupal knowledge so my efforts are still a hack.

If so, is there a way to keep track of it for $sid? I have tried both the beta version of the WebCalendar integration module and the dev snapshot. But it does get WebCalendar 1.1.6 up and working inside Drupal and iFrame. empty ( $webcalendar_session ) ) { 00115 $encoded_login = $webcalendar_session; 00116 if ( empty ( $encoded_login ) ) { 00117 // invalid session cookie 00118 $session_not_found = true; 00119 } else

I guess I'll leave it be for a while and try again much later. One problem that I saw was a minor difference though as line 568 from /webcalendar/includes/classes/WebCalendar.class seems to be different from your example above as mine is missing the "{" as seen htmlentities ( $login ) . "" ); 00132 } 00133 } 00134 // make sure we are connected to the database for password check 00135 $c = @dbi_connect ( $db_host, $db_login, htmlentities ( $login ) . "" ); } } // make sure we are connected to the database for password check $c = @dbi_connect ( $db_host, $db_login, $db_password, $db_database ); if

  1. empty ( $PHP_SELF ) && preg_match ( "/\/includes\//", $PHP_SELF ) ) { die ( "You can't access this file directly!" ); } // Do a sanity check.
  2. Has anyone got this working?
  3. I wanted to post this in case any one else is doing the same.
  4. Billybebob12-02-2005, 03:45 PM Howdy On the use of one-click-installation and selection of webcalendar creation, the table is not created in the MySQL correspnding DB and give an error on use.
  5. I did a reinstall of WebCalendar and it got me...
  6. We call this 4// right after the first call to dbi_connect () 5// (from either the WebCalendar class or here in validate.php). 6function doDbSanityCheck () { 7 global $db_database, $db_host, $db_login;

empty ( $PHP_SELF ) && preg_match ( "/\/includes\//", $PHP_SELF ) ) { 00007 die ( "You can't access this file directly!" ); 00008 } 00009 00010 00011 00012 // Do a Trying the above fix does not fix it and produces the same result. Log in or register to post comments Comment #15 DuaelFr CreditAttribution: DuaelFr commented February 3, 2013 at 2:49pm Status: Active » Closed (won't fix) This version of WebCalendar integration is not Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

is the webcal module handle the user registration for webcalendar upon the drupal user registration or not? 2. fiveupfront11-30-2005, 03:05 PM I think we should assume it does not work. Is there any progress on the resolution for this? User access control gives all permissions to an admin user, but when logging in as an admin user on drupal, WebCalendar inside drupal does not seem to recognize that any user

I didn't realise at first that '-' character meant to remove the line and '+" meant to add (stupid mistake, I know). All I get is the 'Public Access' calendar regardless of the user I am using, the permissions granted, etc. Log in or register to post comments Comment #14 dragondad CreditAttribution: dragondad commented January 30, 2009 at 10:43pm Priority: Normal » Critical Follow the instruction here, I tried the webcal integration, But the login itself does not appear to be working.

function doDbSanityCheck () { global $db_login, $db_host, $db_database; $res = @dbi_query ( "SELECT COUNT(cal_value) FROM webcal_config", false, false ); if ( $res ) { if ( $row = dbi_fetch_row ( $res Hard coding the session_name does work but there must be a way to get to this as a variable. I also tried the 'patch-user-app-drupal_0.txt' from 174215 but I could not get the module to access the Drupal session_name. I then changed $sid = $_COOKIE['PHPSESSID']; inside the user_logged_in() function to: //if all else fails, assume an anonymous user $sid = ''; $uid = 0; //get the session key.

At the bottom of the page, there is an area to upload a SQL file. weblink After making the changes as mentioned here, do I now have to apply the changes mentioned at the beginning of this post by Atratus? Originally I was just copying and pasting. Warning: assert() [function.assert]: Assertion "!

empty ( $user )" failed in /var/www/drupal/webcalendar/includes/access.php on line 335 Error Error executing query. I edited user-app-drupal.php to print out the debug settings and I got this: uid=0 login= Array ( [access webcal] => Array ( [0] => * ) [login to webcal] => Array Thanks, -John Comments Comment #1 Atratus CreditAttribution: Atratus commented December 5, 2007 at 8:02pm I had the same problem and made the following changes to correct it. navigate here dbi_free_result ( $res ); } else { // Error accessing table. // User has wrong db name or has not created tables. // Note: cannot translate this since we have not

Using the debug code in user-app-drupal.php, the user_logged_in() function does return the uid of the current user as the $login, as it should. Work great after !!! codeword11-30-2005, 01:50 PM I just went through the process of the one-click-install of WebCalendar.

After installing the tables the WebCalendar started working fine. (I even got reminders working from the crontab).

WebCalendar does not escape the login name in 00125 // SQL requests. I also added: print_r( 'sid='.$sid."\n"); and that returns: sid= Clicking on the (login) link in WebCalendar just brings me back to the WebCalendar integrated page in Drupal (which makes sense since Don't allow certain types of characters in 00124 // the login. All is peachy. 19 dbi_free_result ( $res ); 20 else { 21 // Error accessing table. 22 // User has wrong db name or has not created tables. 23 // Note:

View the full version with proper formatting. else if ( empty ( $webcalendar_session ) && empty ( $login ) ) { $session_not_found = true; } else { // Check for cookie... Make sure we can access webcal_config table. // We call this right after the first call to dbi_connect() (from // either connect.php or here in validate.php). Even logging in as user 1 results in the 'Public Access' calendar.

Arts 311 Arts INTS 4146 Collaboratory Sproul Statistics Watkins 2101 Watkins 2111 Watkins 2117 Request to Reserve a Computer Lab Request Software Installation Month: Apr 2016 May 2016 Jun 2016 Jul If not found, then note it for later // handling in connect.php. The sessions table contains the Drupal session_name not the PHPSESSID. It looked like it worked, but only the public access calendar would work since it would fail to authenticate.

Could use $_COOKIE here rather than $_REQUEST if (array_key_exists($sid_key,$_REQUEST)) { $sid = $_REQUEST[$sid_key]; } Log in or register to post comments Comment #2 jscoble CreditAttribution: jscoble commented January 29, 2008 at One question though, does drupal session ID ever change? The user_logged_in() function does not get the right session due to a change in the name of the Drupal session cookie described here I fixed this by adding a line Log in or register to post comments Comment #5 whyameye CreditAttribution: whyameye commented March 8, 2008 at 10:07pm The second patch here: did the trick for me.

SeeYouAll codeword12-02-2005, 08:00 PM FYI, after waiting 24 hours, I decided to create the DB tables myself using the PhpMyAdmin instructions (I think they were in Apendix A of the Installguild Doug ------------------------------------------------ Issues as I see them: 1) Drupal uses session_name which is a MD5 hash of the base drupal URL not PHPSESSID as used in WebCalendar integration 5.x-1.0-beta1. here it is the output from the print uid=0 login= Array ( [access webcal] => Array ( ) [login to webcal] => Array ( ) ) I have two basic question Is this due to A: I am an IB (inpatient bastard) and just need to wait a while longer for the db (it has been maybe an hour so far) B:

empty ( $user )" failed in /Library/Apache2/htdocs/drupal/WebCalendar/includes/access.php on line 335 Error Error executing query." and the very same error after: "Warning: assert(): Assertion "! Using Drupal, I wasn't able to get webcalendar to log in with any version other than 1.1.2. I did the one click install and after I received the confirmation email that it was complete, I went to the link to find this message: "Error finding WebCalendar tables in