Jump to content

Michael Grote

Clients
  • Posts

    47
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Michael Grote

  1. Hello,

    during the download part of the upgrade process the process got stuck with about 94%.

    There is an error message:

    Quote

    #0 /var/www/foren/applications/core/modules/admin/system/upgrade.php(647): IPS\core\modules\admin\system\_upgrade->_getDownloadKey()
    #1 /var/www/foren/system/Helpers/Wizard/Wizard.php(181): IPS\core\modules\admin\system\_upgrade->_login()
    #2 /var/www/foren/applications/core/modules/admin/system/upgrade.php(109): IPS\Helpers\_Wizard->__toString()
    #3 /var/www/foren/system/Dispatcher/Controller.php(118): IPS\core\modules\admin\system\_upgrade->manage()
    #4 /var/www/foren/applications/core/modules/admin/system/upgrade.php(54): IPS\Dispatcher\_Controller->execute()
    #5 /var/www/foren/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\system\_upgrade->execute()
    #6 /var/www/foren/31cadmin_x329yc_44/index.php(13): IPS\_Dispatcher->run()
    #7 {main}

    Any ideas?

    Michael

  2. Meanwhile I added two lines of code to print out the calculation values of the memory check.

    The additional lines are printed in bold:

     

    Quote

    243 <?php
    244         $_memoryLimit = @ini_get('memory_limit');
    245         $memoryLimit = $_memoryLimit;
    246
    247         preg_match( "#^(\d+)(\w+)$#", strtolower($memoryLimit), $match );
    248         if( $match[2] == 'g' )
    249         {
    250                 $memoryLimit = intval( $memoryLimit ) * 1024 * 1024 * 1024;
    251         }
    252         else if ( $match[2] == 'm' )
    253         {
    254                 $memoryLimit = intval( $memoryLimit ) * 1024 * 1024;
    255         }
    256         else if ( $match[2] == 'k' )
    257         {
    258                 $memoryLimit = intval( $memoryLimit ) * 1024;
    259         }
    260         else
    261         {
    262                 $memoryLimit = intval( $memoryLimit );
    263         }
    264 ?>
    265
    266 <li class="success"><?php echo $_memoryLimit; ?> $_memory limit.</li>
    267 <li class="success"><?php echo $memoryLimit; ?> $memory limit.</li>
    268
    269 <?php if ( $memoryLimit >= 128 * 1024 * 1024 😞 ?>
    270                                         <li class="success"><?php echo $_memoryLimit; ?> memory limit.</li>
    271 <?php else: $success = FALSE; ?>
    272                                         <li class="fail">Your PHP memory limit is too low. It needs to be set to 128M or more. You should contact your hosti ng provider or system administrator to ask for this to be changed.</li>
    273 <?php endif; ?>

     

     

    The result is as follows:

    Quote

    PHP Requirements

    • PHP version 7.4.26.
    • cURL extension loaded
    • DOM extension loaded.
    • GD extension loaded.
    • Multibyte String extension loaded.
    • MySQLi extension loaded.
    • OpenSSL extension loaded.
    • Session extension loaded.
    • SimpleXML extension loaded.
    • XML Parser extension loaded.
    • XMLReader extension loaded.
    • XMLWriter extension loaded.
    • Zip extension loaded.
    • Exif extension loaded.
    • GMP extension loaded.
    • 512M $_memory limit.
    • 512 $memory limit.
    • Your PHP memory limit is too low. It needs to be set to 128M or more. You should contact your hosting provider or system administrator to ask for this to be changed.
    • No Suhosin restrictions.

    Again the additional result lines are in bold

    The string 512M $_memory limit shows the result of the system call  $_memoryLimit = @ini_get('memory_limit');
    while the string 512 $memory limit is the result of your script calculation.

    This is compared to $memoryLimit >= 128 * 1024 * 1024 and fails

     

    The above code can be found in line 244 to 268

     

    Doing the same with PHP 7.3 enabled shows the correct result.

    Quote

    PHP Requirements

    • You are not running a compatible version of PHP. You need PHP 7.4.0 or above (8.0.0 or above recommended). You should contact your hosting provider or system administrator to ask for an upgrade.
    • cURL extension loaded
    • DOM extension loaded.
    • GD extension loaded.
    • Multibyte String extension loaded.
    • MySQLi extension loaded.
    • OpenSSL extension loaded.
    • Session extension loaded.
    • SimpleXML extension loaded.
    • XML Parser extension loaded.
    • XMLReader extension loaded.
    • XMLWriter extension loaded.
    • Zip extension loaded.
    • Exif extension loaded.
    • GMP extension loaded.
    • 512M $_memory limit.
    • 536870912 $memory limit.
    • 512M memory limit.
    • No Suhosin restrictions.

     

  3. Hi,

    as I'm waiting for an unrestricted  FTP access I tried to drill down the error message.

    For this I added an extra line of code in the ips4.php script as follows:

     

    Quote

    <?php
            $_memoryLimit = @ini_get('memory_limit');
            $memoryLimit = $_memoryLimit;
            preg_match( "#^(\d+)(\w+)$#", strtolower($memoryLimit), $match );
            if( $match[2] == 'g' )
            {
                    $memoryLimit = intval( $memoryLimit ) * 1024 * 1024 * 1024;
            }
            else if ( $match[2] == 'm' )
            {
                    $memoryLimit = intval( $memoryLimit ) * 1024 * 1024;
            }
            else if ( $match[2] == 'k' )
            {
                    $memoryLimit = intval( $memoryLimit ) * 1024;
            }
            else
            {
                    $memoryLimit = intval( $memoryLimit );
            }
    ?>

    <li class="success"><?php echo $_memoryLimit; ?> memory limit.</li>

    <?php if ( $memoryLimit >= 128 * 1024 * 1024 😞 ?>
                                            <li class="success"><?php echo $_memoryLimit; ?> memory limit.</li>
    <?php else: $success = FALSE; ?>
                                            <li class="fail">Your PHP memory limit is too low. It needs to be set to 128M or more. You should contact your hosting provider or system administrator to ask for this to be changed.</li>
    <?php endif; ?>

     

    The result looks like this:

    Quote

    PHP Requirements

    • PHP version 7.4.26.
    • cURL extension loaded
    • DOM extension loaded.
    • GD extension loaded.
    • Multibyte String extension loaded.
    • MySQLi extension loaded.
    • OpenSSL extension loaded.
    • Session extension loaded.
    • SimpleXML extension loaded.
    • XML Parser extension loaded.
    • XMLReader extension loaded.
    • XMLWriter extension loaded.
    • Zip extension loaded.
    • Exif extension loaded.
    • GMP extension loaded.
    • 512M memory limit.
    • Your PHP memory limit is too low. It needs to be set to 128M or more. You should contact your hosting provider or system administrator to ask for this to be changed.
    • No Suhosin restrictions.

    From my point of view the PHP system reports 512M memory too, but your script does a the wrong evaluation.

    Or am I completely wrong?

     

  4. 12 hours ago, Marc Stridgen said:

    The location you have an installation is not one of your test installations, nor a live installation. If you are using it as test you must use your test installation key as per your license agreement

    I asked your colleagues to change one of my test installations to point to the above URL.
    Now it's an official test installation.

  5. Hi,

     

    in preparation of the upgrade to 4.7 I asked my  hosting provider to switch to PHP 7.4.3+
    The company installed PHP 4.7.26 on Debian 4.19, MariaDB and nginx

    Using a test setup to check the compatibility I run in trouble.
    phpinfo() reports a memory limit of 512MB while the compatibilty checker ips4.php reports "our PHP memory limit is too low. It needs to be set to 128M or more. You should contact your hosting provider or system administrator to ask for this to be changed." (see screenshots)

    Could contain: Word, Text, Page, Menu, Calendar

    Could contain: Word, File, Text, Page

    Both the hosting provider and I are searching for the reason for this discrepancy - but with no success.

    Do you have any ideas?

    Regards Michael

  6. Hi,

    I'm running "Partner / Sponsor System 1.1.0" on Invision Community v4.6.12.1.
    When trying to a add a new sponsor I'll get the following error

    Quote

    2S119/1 The CSRF protection key did not match. This may indicate a plugin or theme is out of date. Please contact technical support for more information.

    The marketplace offers "Partner Page 2.1.1" Is this the successor?
    But even this is not compatible with Invision 4.6

     

    Any ideas?

    Michael

  7.  Hi,

    after the upgrade to IPS 4.4.4 with the actual GDPR CompliIance the tasks fails with

    Exception:
    IPS\Db\Exception Object
    (
        [query] => DELETE FROM `ibf_core_members_known_ip_addresses` WHERE time<=1555573982
        [binds] => Array
            (
            )
    
        [message:protected] => Unknown column 'time' in 'where clause'
        [string:Exception:private] => 
        [code:protected] => 1054
        [file:protected] => /var/customers/webs/mgfvlw/test/system/Db/Db.php
        [line:protected] => 631
        [trace:Exception:private] => Array
            (
                [0] => Array
                    (
                        [file] => /var/customers/webs/mgfvlw/test/system/Db/Db.php
                        [line] => 1280
                        [function] => preparedQuery
                        [class] => IPS\_Db
                        [type] => ->
                        [args] => Array
                            (
                                [0] => /*IPS\gdprannoyance\tasks\_pruneOtherIpAddresses::execute:255*/ DELETE FROM `ibf_core_members_known_ip_addresses` WHERE time<=1555573982
                                [1] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [1] => Array
                    (
                        [file] => /var/customers/webs/mgfvlw/test/applications/gdprannoyance/tasks/pruneOtherIpAddresses.php
                        [line] => 86
                        [function] => delete
                        [class] => IPS\_Db
                        [type] => ->
                        [args] => Array
                            (
                                [0] => core_members_known_ip_addresses
                                [1] => Array
                                    (
                                        [0] => time<=1555573982
                                    )
    
                            )
    
                    )
    
                [2] => Array
                    (
                        [file] => /var/customers/webs/mgfvlw/test/system/Task/Task.php
                        [line] => 255
                        [function] => execute
                        [class] => IPS\gdprannoyance\tasks\_pruneOtherIpAddresses
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
                [3] => Array
                    (
                        [file] => /var/customers/webs/mgfvlw/test/system/Task/Task.php
                        [line] => 224
                        [function] => run
                        [class] => IPS\_Task
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
                [4] => Array
                    (
                        [file] => /var/customers/webs/mgfvlw/test/applications/core/interface/task/task.php
                        [line] => 62
                        [function] => runAndLog
                        [class] => IPS\_Task
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
            )
    
        [previous:Exception:private] => 
    )
    

    Any ideas?

    Michael

  8. Hi,

    I installed version 1.0.5. one week ago. The ACP setting (Remove IP addresses after) is set to 90 days.

    When looking at the IP addresses belonging to a member (via ACP -> Member -> <selecting a member> -> View all IP Addresses) there are still a lot of members with IP addresses older than the 90 days threshold (even back to 1999).

×
×
  • Create New...