Menu

Topic-icon Receiving a Catchable fatal Error after update

  • thewedge
  • thewedge's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 18 hours ago - 1 month 17 hours ago #8508 by thewedge
I just updated Security Check Pro and got a white screen. When I went to show errors this is what I got.

Catchable fatal error: Argument 1 passed to SecuritycheckprosModelFileManager::getDirectories() must be an instance of string, string given, called in /administrator/components/com_securitycheckpro/models/filemanager.php on line 1935 and defined in /administrator/components/com_securitycheckpro/models/filemanager.php on line 1251 

Joomla! 3.9.25
Last edit: 1 month 17 hours ago by Jose. Reason: Avoid path disclosure

Please Log in or Create an account to join the conversation.

More
1 month 18 hours ago - 1 month 17 hours ago #8509 by Jose
Hi thewedge,

The site is running php 5.6, isn't it? I did some changes in after 3.2.2 version to ensure compatibility with PHP 8 and those changes are causing the issue.

To solve it:

Open the current filemanager.php file and go to the 1251 line. It should be like this: 
public function getDirectories($root = null, $include_exceptions, $recursive, $opcion)
The change I did is this: 
public function getDirectories(string $root, $include_exceptions, $recursive, $opcion)

Regards,
Jose
Last edit: 1 month 17 hours ago by Jose.

Please Log in or Create an account to join the conversation.

  • thewedge
  • thewedge's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 17 hours ago #8510 by thewedge
Replied by thewedge on topic Receiving a Catchable fatal Error after update
Made the change, but still getting white screen. It is also saying that there is someting wrong with this line 1935
$this->getDirectories($file_check_path, $include_exceptions, $folder_exceptions, $opcion);

Please Log in or Create an account to join the conversation.

More
1 month 16 hours ago #8511 by Jose
That line only calls to the function that causes the issue. Maybe is a caching issue.
​​​​​​
Please, try with other browser and if this doesn't work send me ftp credentials (use the email from which you receive forum notifications).

Regards,
Jose

Please Log in or Create an account to join the conversation.

  • thewedge
  • thewedge's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 11 hours ago #8512 by thewedge
Replied by thewedge on topic Receiving a Catchable fatal Error after update
Can you send me the version just before the latest version and I can install that. In july we are planning to move the site to a PHP 7 site.

Please Log in or Create an account to join the conversation.

More
1 month 5 hours ago #8513 by Jose
Hi thewedge,

Email sent.

Regards,
Jose

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum

Login or Sign In