[Maintain-dev] [JIRA] Commented: (MNT-1369) error after removing
cname
Danny Robert (JIRA)
jira at osuosl.org
Mon Aug 22 09:44:07 PDT 2005
[ http://bugs.osuosl.org/browse/MNT-1369?page=comments#action_10618 ]
Danny Robert commented on MNT-1369:
-----------------------------------
I have been unable to reproduce this issue, however, the following fix should handle it. In docs/cname.php on line 170, there exists the line:
----
if (!$user->view) {
----
Change this line to read:
----
if (!user->view || !is_object($user->view)) {
----
The problem, I'm assuming, is that $user->view under certain circumstances, is initialized as a string, so it will not be re-initialized as an object in the "if (!$user->view)" line. The fix above should ensure that if it's a string, it will be re-initialized as an object, allowing $user->view->initialize() to be called successfully.
One thing that would help determining this problem would be a var_dump (or print_r) of $user->view on line 169 so I can confirm that $user->view is indeed a string, and what it's currently holding.
> error after removing cname
> --------------------------
>
> Key: MNT-1369
> URL: http://bugs.osuosl.org/browse/MNT-1369
> Project: Maintain
> Type: Bug
> Reporter: Anonymous Bug Reporting
> Assignee: Danny Robert
> Priority: Urgent
>
>
> Maintain 2.4.1 Bug Report from lieuallt
> after removing a cname, and clicking on confirm, I see this error:
> Fatal error: Call to undefined function: initialize() in /data/maintain/docs/cname.php on line 178
>
> ##########################################
> # Session Information
> Array
> (
> [last_seen] => 1124667281
> [is_admin] =>
> [is_zone_admin] => 1
> [is_user] =>
> [is_guest] =>
> [debug] =>
> [view] =>
> [username] => lieuallt
> [fullname] =>
> [preferred_zone] => 134
> [ui_size] => 10
> [list_view] => 25
> [color_template] => orst_generic
> [host_view] => advanced
> [email] => lieuallt at onid.orst.edu
> [0] => lieuallt
> [1] =>
> [password] =>
> [2] => ldap
> [type] => ldap
> [3] => 134
> [4] => 10
> [5] => 25
> [6] => 1124667281
> [7] => orst_generic
> [8] => advanced
> [9] =>
> )
> Array
> (
> [id] => 134
> [name] => zone.engr
> [description] => College of Engineering
> [notify] => 1
> [email] =>
> [purgeable] => true
> [comment] =>
> [object_history] => objecthistory Object
> (
> [object_type] => zone
> [object_id] => 134
> )
> )
> http://maintain.oregonstate.edu/bug.php
> ##########################################
> [Created via e-mail received from: lieuallt at onid.orst.edu]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://bugs.osuosl.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
More information about the Maintain-dev
mailing list