Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] OUGC Unlocked Content Log
#6
Hello, I got MyBB Internal Error after install & activate this plugin.

Error Type:
Catchable Fatal Error (4096)

Error Message:
Argument 1 passed to OUGCUnlockedContentLog\Core\addHooks() must be an instance of OUGCUnlockedContentLog\Core\string, string given, called in inc/plugins/ougc_unlocked_content_log.php on line 49 and defined

Location:
File: inc/plugins/ougc_unlocked_content_log/core.php
Line: 67

Code:
64.    }
65. }
66.
67. function addHooks(string $namespace)
68. {
69.    global $plugins;
70.

   

MyBB version 1.8.26
PHP Version 5.6.40

Will this be the php version problem? I saw you in another post said that some of your plugins needed higher than PHP 7.0 version.

I used phan to check the compatible between PhP 5 and 7.
And it showed that "In PHP 5.6, scalar types such as string in type signatures are treated like class names"
, and this line "function addHooks(string $namespace)" is the only compatible problem that phan had detected.
Is it possible to adjust this line to PHP5 format so that the whole plugin might be worked in PHP5 system?
Reply


Messages In This Thread
OUGC Unlocked Content Log - by Omar G. - 2020-06-24, 06:11 AM
RE: OUGC Unlocked Content Log - by 8guawong - 2020-06-24, 07:26 AM
RE: OUGC Unlocked Content Log - by Dr_The_One - 2020-06-24, 12:28 PM
RE: OUGC Unlocked Content Log - by Omar G. - 2020-06-24, 07:02 PM
RE: OUGC Unlocked Content Log - by Dr_The_One - 2020-06-24, 07:21 PM
RE: OUGC Unlocked Content Log - by RealSelf - 2021-04-04, 05:14 PM
RE: OUGC Unlocked Content Log - by Omar G. - 2021-04-06, 03:22 AM
RE: OUGC Unlocked Content Log - by RealSelf - 2021-04-06, 08:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)