Tracker email field type: Fatal error on validating an email address
- Status
- Closed
- Subject
- Tracker email field type: Fatal error on validating an email address
- Version
- 1.9.x
- Category
- Error
- Feature
- Trackers
- Submitted by
- chessy
- Volunteered to solve
- chessy
- Rating
- Description
If you create a tracker with an email field, and choose to validate that field by Tikiwiki, it will call TrackerLib->check_field_values(), that will include lib/trackers/trackerlib.php, that will include lib/registration/registrationlib.php, that will include lib/db/tikitable.php that will call check_script() function in an empty object ($access->check_script()) . Here is a trace log:
client 192.168.1.75 PHP Stack trace:, referer: http://newtiki/tiki-view_tracker.php?trackerId=1
client 192.168.1.75 PHP 1. {main}() /tmp/tikiwiki/tiki-view_tracker.php:0, referer: http://newtiki/tiki-view_tracker.php?trackerId=1
client 192.168.1.75 PHP 2. TrackerLib->check_field_values() /tmp/tikiwiki/tiki-view_tracker.php:473, referer: http://newtiki/tiki-view_tracker.php?trackerId=1
client 192.168.1.75 PHP 3. require_once() /tmp/tikiwiki/lib/trackers/trackerlib.php:1116, referer: http://newtiki/tiki-view_tracker.php?trackerId=1
client 192.168.1.75 PHP 4. require_once() /tmp/tikiwiki/lib/registration/registrationlib.php:21, referer: http://newtiki/tiki-view_tracker.php?trackerId=1
client 192.168.1.75 PHP Fatal error: Call to a member function check_script() on a non-object in /tmp/tikiwiki/lib/db/tikitable.php on line 10, referer: http://newtiki/tiki-view_tracker.php?trackerId=1- Solution
What is this tiki version?
There is no function check_script in the tiki code and no lib/db/tikitable.php
sylvie---------Access $access variable as a global variable in the check_field_values() function, before any include or require_once :
$ diff lib/trackers/trackerlib.php /tmp/trackerlib.php
1114c1114
< global $registrationlib,$dbTiki, $sender_email;
> global $registrationlib,$dbTiki, $sender_email, $access;
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 871
- Created
- Sunday 03 September, 2006 22:16:18 UTC
by Unknown - LastModif
- Thursday 05 July, 2007 13:16:56 UTC