Tue Jun 28 16:00:22 2005

Ticket #1207 (Closed: fixed)

PHP notices appear in admin site


Priority: normal Reporter: john
Severity: minor Assigned to: paul
Component: Admin Interface Status: closed
Version: 2.3.0 Resolution: fixed
Milestone: 2.3.1 Keywords:  

Description by john:

In the 'add publication' page, I get a few notices appearing in the input fields, for example the following. Not a big worry but worth fixing.


Paul: this one is invalid

<b>Notice</b>: Undefined variable: HTTP_HOST in <b>/var/www/campsite-common/html/priv/pub/add.php</b> on line <b>99</b><br />


<SELECT NAME="cURLType" class="input_select"> <br /> <b>Notice</b>: Undefined variable: q_pub in <b>/var/www/campsite-common/html/priv/pub/add.php</b> on line <b>126</b><br /> <br /> <b>Notice</b>: Undefined index: fetch_ in <b>/var/www/campsite-common/html/priv/lib_campsite.php</b> on line <b>177</b><br /> <OPTION VALUE="1">template path<br /> <b>Notice</b>: Undefined variable: q_pub in <b>/var/www/campsite- common/html/priv/pub/add.php</b> on line <b>126</b><br /> <br /> <b>Notice</b>: Undefined index: fetch_ in <b>/var/www/campsite- common/html/priv/lib_campsite.php</b> on line <b>177</b><br /> <OPTION VALUE="2">short names </SELECT>


<SELECT NAME="cTimeUnit" class="input_select"> <br /> <b>Notice</b>: Undefined variable: q_pub in <b>/var/www/campsite- common/html/priv/pub/add.php</b> on line <b>155</b><br /> <br /> <b>Notice</b>: Undefined index: fetch_ in <b>/var/www/campsite- common/html/priv/lib_campsite.php</b> on line <b>177</b><br /> <OPTION VALUE="D">days<br /> <b>Notice</b>: Undefined variable: q_pub in <b>/var/www/campsite-common/html/priv/pub/add.php</b> on line <b>155</b><br /> <br /> <b>Notice</b>: Undefined index: fetch_ in <b>/var/www/campsite-common/html/priv/lib_campsite.php</b> on line <b>177</b><br /> <OPTION VALUE="M">months<br /> <b>Notice</b>: Undefined variable: q_pub in <b>/var/www/campsite- common/html/priv/pub/add.php</b> on line <b>155</b><br /> <br /> <b>Notice</b>: Undefined index: fetch_ in <b>/var/www/campsite- common/html/priv/lib_campsite.php</b> on line <b>177</b><br /> <OPTION VALUE="W">weeks<br /> <b>Notice</b>: Undefined variable: q_pub in <b>/var/www/campsite-common/html/priv/pub/add.php</b> on line <b>155</b><br /> <br /> <b>Notice</b>: Undefined index: fetch_ in <b>/var/www/campsite-common/html/priv/lib_campsite.php</b> on line <b>177</b><br /> <OPTION VALUE="Y">years </SELECT>

ADDITIONAL INFORMATION: Looks like it is assuming 'register globals' is turned on. Is that an installation requirement? If so, it should be inserted into the default 'conf' file generated by create_instance.

Changelog

Tue Jun 28 16:35:58 2005: Modified by john

    There are also notices in the 'add issue' form and the 'add section'
    acknowledgment page,      Notice: Undefined variable: trial_days in
    /var/www/campsite-common/html/priv/lib_campsite.php on line 414
    Notice: Undefined variable: paid_days in /var/www/campsite-
    common/html/priv/lib_campsite.php on line 415
    

    Tue Jul 5 16:24:56 2005: Modified by john

      Another one from the aliases/publications stuff:    Notice: Undefined
      variable: cSite in /var/www/campsite-common/html/priv/pub/do_edit.php
      on line 112
      

      Wed Jul 13 16:15:22 2005: Modified by john

        Notice: Undefined variable: cSubs in /var/www/campsite-
        common/html/priv/pub/issues/sections/do_edit.php on line 138
        Notice: Undefined variable: cSubs in /var/www/campsite-
        common/html/priv/pub/issues/sections/do_edit.php on line 146    # The
        section In Focus has been successfuly modified.
        

        Fri Jul 15 16:24:48 2005: Modified by john

          Notice: Undefined index: Site in /var/www/campsite-
          common/html/priv/lib_campsite.php on line 178
          

          Fri Aug 5 10:38:24 2005: Modified by mugur

          • milestone changed from 2.2.2 to 3.0.0

          Fri Aug 5 11:37:30 2005: Modified by paul

          • milestone changed from 3.0.0 to 2.4.0

          Thu Aug 11 19:43:56 2005: Modified by paul

          • description changed.
          • status changed from new to assigned
          • owner changed from anonymous to paul

          Thu Aug 11 19:45:01 2005: Modified by paul

          • description changed.

          Mon Aug 15 15:39:05 2005: Modified by john

            Notice: Undefined variable: SERVER_ADMIN in /usr/local/campsite/www-common/html/priv/do_login.php on line 46

            Notice: Undefined variable: SERVER_ADMIN in /usr/local/campsite/www-common/html/priv/do_login.php on line 46 If your problem persists please contact the site administrator

            Tue Aug 16 15:19:47 2005: Modified by paul

            • milestone changed from 2.4.0 to 2.3.1
            • version changed from 2.4.0 to 2.3.0

            Tue Aug 16 16:50:46 2005: Modified by paul

            • description changed.
            • resolution set to fixed
            • status changed from assigned to closed

            A lot of these were from 2.2.X. Only a couple made it through to 2.3.