Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Oct 2007
    Location
    Cornwall/Amsterdam
    Posts
    61
    Plugin Contributions
    0

    Default Re: Upgraded to v1.5.6c - admin throwing debug logs of GLOBAL_SET_TIME_LIMIT

    Spoke too soon.

    Uploaded USU 3.0.5 from the plugins repository and received the following error :-

    [03-Apr-2020 08:35:11 UTC] PHP Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /home/koolbadg/public_html/includes/classes/usu.php on line 288

    [03-Apr-2020 08:35:11 UTC] Request URI: /, IP address: 109.151.51.216
    --> PHP Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /home/koolbadg/public_html/includes/classes/usu.php on line 288.

  2. #12
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Upgraded to v1.5.6c - admin throwing debug logs of GLOBAL_SET_TIME_LIMIT

    Quote Originally Posted by johnjlarge View Post
    Spoke too soon.

    Uploaded USU 3.0.5 from the plugins repository and received the following error :-

    [03-Apr-2020 08:35:11 UTC] PHP Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /home/koolbadg/public_html/includes/classes/usu.php on line 288

    [03-Apr-2020 08:35:11 UTC] Request URI: /, IP address: 109.151.51.216
    --> PHP Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /home/koolbadg/public_html/includes/classes/usu.php on line 288.
    Well, crud. You can correct the issue by editing /includes/classes/usu.php's add_sid method:
    Code:
        protected function add_sid($link, $add_session_id, $connection, $separator) 
        {
            global $request_type, $http_domain, $https_domain, $session_started;
    
            $_sid = '';
            if ($add_session_id == true && $session_started && SESSION_FORCE_COOKIE_USE == 'False') {
                if (defined('SID') && !empty(constant('SID'))) {
                    $_sid = constant('SID');
                } else {
                    $ssl_enabled = (IS_ADMIN_FLAG === true) ? ENABLE_SSL_CATALOG : ENABLE_SSL;
                    if (($request_type == 'NONSSL' && $connection == 'SSL' && $ssl_enabled == 'true') || ($request_type == 'SSL' && $connection == 'NONSSL')) {
                        if ($http_domain != $https_domain) {
                            $_sid = zen_session_name() . '=' . zen_session_id();
                        }
                        
                }
            }
    ... adding the missing curly-brace:
    Code:
        protected function add_sid($link, $add_session_id, $connection, $separator) 
        {
            global $request_type, $http_domain, $https_domain, $session_started;
    
            $_sid = '';
            if ($add_session_id == true && $session_started && SESSION_FORCE_COOKIE_USE == 'False') {
                if (defined('SID') && !empty(constant('SID'))) {
                    $_sid = constant('SID');
                } else {
                    $ssl_enabled = (IS_ADMIN_FLAG === true) ? ENABLE_SSL_CATALOG : ENABLE_SSL;
                    if (($request_type == 'NONSSL' && $connection == 'SSL' && $ssl_enabled == 'true') || ($request_type == 'SSL' && $connection == 'NONSSL')) {
                        if ($http_domain != $https_domain) {
                            $_sid = zen_session_name() . '=' . zen_session_id();
                        }
                    }
                }
            }
    I'll get a quick v3.0.6 release (er) released. Thanks a bunch for the report!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 11
    Last Post: 15 Jan 2015, 05:40 PM
  2. No debug logs
    By Deirdre in forum General Questions
    Replies: 4
    Last Post: 7 Jan 2011, 05:44 AM
  3. Authorize.net AIM still generating debug logs even with debug disabled
    By llynix in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 11 May 2010, 01:03 AM
  4. Delete Debug Logs?
    By igendreau in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Apr 2010, 04:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR