1 (edited by Alan Hale 03-12-2009 09:22:54)

Re: Problem registering website administrator

Hi

Following the tutorial instructions, I've registered a website and created a new "person". But when I try to edit that person's details to make them an administrator for my website  (Admin->Users->Edit User Details, so I'm in "/indicia/index.php/user/edit_from_person") the form appears but I get an error in red at the bottom of the page:

Error occurred when loading page.
Undefined variable: values
For more information refer to the application log file.

and there is no Save or Submit button.

The application log gives no further details.

Cheers

Alan

Alan Hale
Aberystwyth

2

Re: Problem registering website administrator

Hi Alan

What is config.log_threshold set to in your application/config/config.php file? If you see the message above, you should definitely have something in the log file unless logging is off (set to 0). If you set it to 4, then retry, you should get a full stack trace in the log in application/logs/*.log.php.

Best Wishes

John van Breda
Biodiverse IT

3

Re: Problem registering website administrator

Hi John

Sorry, you did tell me about debugging mode 4 before - I forgot to reset it after I copied in the upgrade files.

Anyway, here is the last section of the relevant log:

2009-12-04 16:59:45 +00:00 --- debug: Session Library initialized
2009-12-04 16:59:45 +00:00 --- error: Error occurred
2009-12-04 16:59:45 +00:00 --- error: 8
2009-12-04 16:59:45 +00:00 --- error: Undefined variable: values
2009-12-04 16:59:45 +00:00 --- error: In /var/www/indicia/application/views/user/user_edit.php on line 95
2009-12-04 16:59:45 +00:00 --- error: Error occurred when loading view.. Undefined variable: values at line 95 in file /var/www/indicia/application/views/user/user_edit.php
2009-12-04 16:59:45 +00:00 --- debug: Stack trace:
    /var/www/indicia/application/views/user/user_edit.php - line 95 - indicia_exception_handler
    /var/www/indicia/application/controllers/indicia.php - line 380 - include
    /var/www/indicia/system/libraries/View.php - line 272 - _kohana_load_view
    /var/www/indicia/system/libraries/View.php - line 244 - render
    /var/www/indicia/application/views/templates/template.php - line 145 - __toString
    /var/www/indicia/application/controllers/indicia.php - line 380 - include
    /var/www/indicia/system/libraries/View.php - line 272 - _kohana_load_view
    /var/www/indicia/system/controllers/template.php - line 50 - render
    Unknown file - line Unknown - _render
    /var/www/indicia/system/core/Event.php - line 209 - call_user_func
    /var/www/indicia/system/core/Kohana.php - line 294 - run
    Unknown file - line Unknown - instance
    /var/www/indicia/system/core/Event.php - line 209 - call_user_func
    /var/www/indicia/system/core/Bootstrap.php - line 55 - run
    /var/www/indicia/index.php - line 135 - require

Much more informative!

Cheers
Alan

Alan Hale
Aberystwyth

4

Re: Problem registering website administrator

Thanks for that Alan. After rummaging around a bit this morning I have realised this issue is fixed already in the codebase, as are quite a few others. So rather than mess around I have uploaded the latest code as version 0.2.3 to the downloads page at http://code.google.com/p/indicia/downloads/list.
You can just unzip the files ontop of your installation then log in and it will automatically upgrade.

Best Wishes

John van Breda
Biodiverse IT

5

Re: Problem registering website administrator

Great -  thanks John.

Alan

Alan Hale
Aberystwyth