I installed the airline reservation system. But I could not find a menu to request page display.
I tried to add slight modification to the code at the menu item in resi.module file by changing type from MENU CALL_BACK to MENU_SUGGESSTED_ITEM. This helped to creat a menu but when I click this menu link I get warning message "maximum excusion time of 60 seconds exceeded in \drupal4.7\includes\common.inc on line 493".
$items[] = array('path' => 'resi', 'title' => t('Flugzeugreservierungssystem'),
//'callback' => 'resi_page',
'callback' => 'resi_page_calendar',
'access' => user_access('access content'),
'type' => MENU_SUGGESTED_ITEM); //changed from 'type' => MENU_CALLBACK
Comments
Comment #1
jochen wendebaum commentedI added your contribution and tested it with success on the test site.
I even deleted the module and the database tables, and installed it completly new, and it does work.
One idea I have is that you need to install jstools, too, as I rely on the jscalendar. I am sorry, but I suppose I did not mention this before...
Comment #2
jochen wendebaum commentedadded new release 4.7.x-1.2 with the suggested fix as well as a dependancy check for jscalendar.
Comment #3
wisdom commentedThe link problem is fixed. But still I can not display the page when I clik the link.
I installed the jstools and jscalendar and enabled them. Also used the latest releases of drupal and resi.
I am testing the application on localhost.
The error messages are:
1) Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\xampp\htdocs\drupal4.7\includes\common.inc on line 494
2)warning: mktime() expects parameter 6 to be long, string given in C:\Program Files\xampp\htdocs\drupal4.7\modules\resi\resi.inc on line 173.
warning: mktime() expects parameter 6 to be long, string given in C:\Program Files\xampp\htdocs\drupal4.7\modules\resi\resi.inc on line 173.
To try to fix Error #1 tried to change the global php settings of
max_execution_time 120 in ".htaccess" file in drupal directory. This does not help either.
I get max_execution_time of 120 s exceeded
Comment #4
jochen wendebaum commentedjust release version 1.3, please try this out, it should get rid of the error messages you posted.
Comment #5
wisdom commentedThe page still not displaying after I installed version 1.3. The following error message is displayed:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\xampp\htdocs\drupal4.7\includes\common.inc on line 494
Changing the maximum execution time to 120 is not helping either.
However, the earlier error associated with mktime does not show up this time
Comment #6
jochen wendebaum commentedcan you tell me please, what version of php you are using?
My system is running on PHP 4.3.10-19 without problems.
This error is strange, as it doesn't seem directly related to this module. I suppose you have other modules running without problem on your 4.7-installation?
Comment #7
wisdom commented+ PHP 5.1.6 + PHP 4.4.4 + PEAR
+ PHP-Switch win32 1.0 (von Apachefriends, man nehme die "php-switch.bat")
+ Apache 2.2.3 + MySQL 5.0.24a
+ XAMPP Control Version 2.3 from www.nat32.com + XAMPP Security 1.0 + SQLite 2.8.15
+ OpenSSL 0.9.8c + phpMyAdmin 2.8.2.4
+ ADOdb 4.91 + Mercury Mail Transport System v4.01b + FileZilla FTP Server 0.9.18
+ Webalizer 2.01-10 + Zend Optimizer 3.0.1
+ eAccelerator0.9.5 RC1 for PHP 5.1.6 (unused, modify the php.ini)
Comment #8
wisdom commentedYes I have many applications running on my Drupal 4.7 installations. The following is the
information of the environment I am testing the application:
+ PHP 5.1.6 + PHP 4.4.4 + PEAR
+ PHP-Switch win32 1.0 (von Apachefriends, man nehme die "php-switch.bat")
+ Apache 2.2.3 + MySQL 5.0.24a
+ XAMPP Control Version 2.3 from www.nat32.com + XAMPP Security 1.0 + SQLite 2.8.15
+ OpenSSL 0.9.8c + phpMyAdmin 2.8.2.4
+ ADOdb 4.91 + Mercury Mail Transport System v4.01b + FileZilla FTP Server 0.9.18
+ Webalizer 2.01-10 + Zend Optimizer 3.0.1
+ eAccelerator0.9.5 RC1 for PHP 5.1.6 (unused, modify the php.ini)
Comment #9
wisdom commentedNow the program is running after commenting out the following two lines of code in resi.inc around line #186
//while (strftime('%u', $starttag_stamp) != 1)
//$starttag_stamp -= 60*60*24;
I am not sure why the program hangs there and kept generating the error message "Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\xampp\htdocs\drupal4.7\includes\common.inc on line 494 ".
It looks it is a valid while statement and infinite loop would not occur.
Comment #10
jochen wendebaum commentedI just released a new reservation system for Drupal 6, based on this module, and rewritten completly from scracht.
http://drupal.org/project/simple_reservation
The "airplane reservation system" won't be touched anymore in the future, all efforts go into this new project.