Jump to content

Issues with PHP 7.4 found in IPS latest


Go to solution Solved by bfarber,

Recommended Posts

Not sure if any these have been fixed in 4.5, but these errors show up in the latest version of IPS with php 7.4 (all 3rd party plugins and apps have been disabled on the local, so i've ruled that out).

Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null"

Stacktrace:
#19 Whoops\Exception\ErrorException in /home/michael/public_html/dogwell/applications/downloads/extensions/core/GroupLimits/Downloads.php:74
#18 Whoops\Run:handleError in /home/michael/public_html/dogwell/applications/downloads/extensions/core/GroupLimits/Downloads.php:74
#17 IPS\downloads\extensions\core\GroupLimits\_Downloads:IPS\downloads\extensions\core\GroupLimits\{closure} in /home/michael/public_html/dogwell/system/Member/Member.php:858
#16 IPS\_Member:get_group in /home/michael/public_html/dogwell/system/Patterns/ActiveRecord.php:335
#15 IPS\Patterns\_ActiveRecord:__get in /home/michael/public_html/dogwell/system/Member/Member.php:901
#14 IPS\_Member:get_groupName in /home/michael/public_html/dogwell/system/Patterns/ActiveRecord.php:335
#13 IPS\Patterns\_ActiveRecord:__get in /tmp/theme_core_front_search_membervpEWUE:24
#12 IPS\Theme\theme_core_front_search_member in /home/michael/public_html/dogwell/system/Theme/Dev/Template.php:171
#11 IPS\Theme\Dev\_Template:__call in /home/michael/public_html/dogwell/system/Member/Member.php:3196
#10 IPS\_Member:searchResultHtml in /tmp/theme_core_front_search_resultStream8ebzPE:212
#9 IPS\Theme\theme_core_front_search_resultStream in /home/michael/public_html/dogwell/system/Theme/Dev/Template.php:171
#8 IPS\Theme\Dev\_Template:__call in /tmp/theme_core_front_search_resultsRnokgE:18
#7 IPS\Theme\theme_core_front_search_results in /home/michael/public_html/dogwell/system/Theme/Dev/Template.php:171
#6 IPS\Theme\Dev\_Template:__call in /tmp/theme_core_front_search_searchh3MPHF:71
#5 IPS\Theme\theme_core_front_search_search in /home/michael/public_html/dogwell/system/Theme/Dev/Template.php:171
#4 IPS\Theme\Dev\_Template:__call in /home/michael/public_html/dogwell/applications/core/modules/front/search/search.php:362
#3 IPS\core\modules\front\search\_search:_results in /home/michael/public_html/dogwell/applications/core/modules/front/search/search.php:80
#2 IPS\core\modules\front\search\_search:manage in /home/michael/public_html/dogwell/system/Dispatcher/Controller.php:96
#1 IPS\Dispatcher\_Controller:execute in /home/michael/public_html/dogwell/system/Dispatcher/Dispatcher.php:152
#0 IPS\_Dispatcher:run in /home/michael/public_html/dogwell/index.php:13

this one happens when i am searching for a member in the site search, it also happens on comments and posts.

Whoops\Exception\ErrorException: Trying to access array offset on value of type null (8)
#0 /home/michael/public_html/dogwell/applications/core/modules/admin/promotion/seo.php(417): Whoops\Run->handleError()
#1 /home/michael/public_html/dogwell/system/Helpers/Form/Matrix.php(335): IPS\core\modules\admin\promotion\_seo->IPS\core\modules\admin\promotion\{closure}()
#2 /home/michael/public_html/dogwell/system/Helpers/Form/Matrix.php(220): IPS\Helpers\Form\_Matrix->buildRow()
#3 /home/michael/public_html/dogwell/system/Helpers/Form/Matrix.php(162): IPS\Helpers\Form\_Matrix->elements()
#4 /home/michael/public_html/dogwell/system/Helpers/Form/Form.php(411): IPS\Helpers\Form\_Matrix->nested()
#5 /tmp/theme_core_admin_global_blockUGvH8M(45): IPS\Helpers\_Form->__toString()
#6 /home/michael/public_html/dogwell/system/Theme/Dev/Template.php(171): IPS\Theme\theme_core_admin_global_block()
#7 /home/michael/public_html/dogwell/applications/core/modules/admin/promotion/seo.php(479): IPS\Theme\Dev\_Template->__call()
#8 /home/michael/public_html/dogwell/system/Dispatcher/Controller.php(85): IPS\core\modules\admin\promotion\_seo->addMeta()
#9 /home/michael/public_html/dogwell/applications/core/modules/admin/promotion/seo.php(48): IPS\Dispatcher\_Controller->execute()
#10 /home/michael/public_html/dogwell/system/Dispatcher/Dispatcher.php(152): IPS\core\modules\admin\promotion\_seo->execute()
#11 /home/michael/public_html/dogwell/admin/index.php(14): IPS\_Dispatcher->run()
#12 {main}

trying to edit/add meta tag info in ACP->system->site promotion->search engine modifications, Meta Tags tab.

Whoops\Exception\ErrorException: Trying to access array offset on value of type null (8)
#0 /home/michael/public_html/dogwell/applications/downloads/extensions/core/GroupLimits/Downloads.php(74): Whoops\Run->handleError()
#1 /home/michael/public_html/dogwell/system/Member/Member.php(858): IPS\downloads\extensions\core\GroupLimits\_Downloads->IPS\downloads\extensions\core\GroupLimits\{closure}()
#2 /home/michael/public_html/dogwell/system/Patterns/ActiveRecord.php(335): IPS\_Member->get_group()
#3 /home/michael/public_html/dogwell/system/Member/Member.php(1927): IPS\Patterns\_ActiveRecord->__get()
#4 /home/michael/public_html/dogwell/applications/core/modules/admin/members/members.php(279): IPS\_Member->isBanned()
#5 /home/michael/public_html/dogwell/system/Helpers/Table/Db.php(425): IPS\core\modules\admin\members\_members->IPS\core\modules\admin\members\{closure}()
#6 /home/michael/public_html/dogwell/system/Helpers/Table/Table.php(489): IPS\Helpers\Table\_Db->getRows()
#7 /home/michael/public_html/dogwell/applications/core/modules/admin/members/members.php(505): IPS\Helpers\Table\_Table->__toString()
#8 /home/michael/public_html/dogwell/system/Dispatcher/Controller.php(96): IPS\core\modules\admin\members\_members->manage()
#9 /home/michael/public_html/dogwell/system/Dispatcher/Dispatcher.php(152): IPS\Dispatcher\_Controller->execute()
#10 /home/michael/public_html/dogwell/admin/index.php(14): IPS\_Dispatcher->run()
#11 {main}

ACP->Members->Members (click on the administrator filter, or searching for member on the table)

Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null"

Stacktrace:
#7 Whoops\Exception\ErrorException in /home/michael/public_html/dogwell/system/Widget/Widget.php:386
#6 Whoops\Run:handleError in /home/michael/public_html/dogwell/system/Widget/Widget.php:386
#5 IPS\_Widget:devTable in /home/michael/public_html/dogwell/applications/core/modules/admin/applications/developer.php:3488
#4 IPS\core\modules\admin\applications\_developer:_manageWidgets in /home/michael/public_html/dogwell/applications/core/modules/admin/applications/developer.php:89
#3 IPS\core\modules\admin\applications\_developer:manage in /home/michael/public_html/dogwell/system/Dispatcher/Controller.php:96
#2 IPS\Dispatcher\_Controller:execute in /home/michael/public_html/dogwell/applications/core/modules/admin/applications/developer.php:59
#1 IPS\core\modules\admin\applications\_developer:execute in /home/michael/public_html/dogwell/system/Dispatcher/Dispatcher.php:152
#0 IPS\_Dispatcher:run in /home/michael/public_html/dogwell/admin/index.php:14

when trying to add/edit a widget in dev center.

these are all the ones i have noted of late, there were a few others but i didn't log them as i thought it was due to something else. i'm pretty sure this is php 7.4 causing this:

https://www.php.net/manual/de/migration74.incompatible.php#migration74.incompatible.core.non-array-access

Link to comment
Share on other sites

  • Solution

The only one I can reproduce on our 4.5 codebase right now is the seo.php one. I'm submitting a fix for that.

I would recommend holding off testing php 7.4 any further until you get your hands on 4.5. We've made many fixes already in 4.5 for php 7.4 issues.

Link to comment
Share on other sites

4 hours ago, bfarber said:

The only one I can reproduce on our 4.5 codebase right now is the seo.php one. I'm submitting a fix for that.

I would recommend holding off testing php 7.4 any further until you get your hands on 4.5. We've made many fixes already in 4.5 for php 7.4 issues.

its why i was using lando to use php 7.3 when i came across the url issue. 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...