The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i18n navigation php warning
#1
My ISP recently upgraded php to 7.x (I believe) and I was getting this message at the top of each page:
"Methods with the same name as their class will not be constructors in a future version of PHP"
with a reference to line 347 of  frontend.class.php, part of the i18n Navigation plugin.

I downloaded the latest version of the plugin but it did not fix it, so I found this link:

https://cweiske.de/tagebuch/php4-constructors-php7.htm

Based on that, I modified the function referenced in the warning as follows:

[Image: i18_Navigation_frontend.class.png]

That fixed the problem Smile
Reply




Users browsing this thread: 2 Guest(s)