No Code Attached Yet
avatar Sparkkkkie
Sparkkkkie
20 Mar 2022

Steps to reproduce the issue

Get joomla 3.10.6
Try to send an email or click the reset password button on the site itself.
Get the error: Fatal error: Type of JException::$file must be string (as in class Exception) in C:\xampp\htdocs\libraries\legacy\exception\exception.php on line 18

Expected result

That it sends an email.

Actual result

Getting the error: Fatal error: Type of JException::$file must be string (as in class Exception) in C:\xampp\htdocs\libraries\legacy\exception\exception.php on line 18

System information (as much as possible)

Xampp.
SSD

Additional comments

avatar Sparkkkkie Sparkkkkie - open - 20 Mar 2022
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Mar 2022
avatar zero-24
zero-24 - comment - 20 Mar 2022

Hi, looks like you are running php 8.1 please apply the changes here and try again: #37074

But that will just show the real issue so please share some more infos from the issue.

avatar Sparkkkkie
Sparkkkkie - comment - 20 Mar 2022

Hi, looks like you are running php 8.1 please apply the changes here and try again: #37074

But that will just show the real issue so please share some more infos from the issue.

Huh? What do you mean? What should i do to fix this, sorry im pretty new to php.

avatar zero-24
zero-24 - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

avatar Sparkkkkie
Sparkkkkie - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

Alr but how can i apply those changes? Sorry im new.

avatar Sparkkkkie
Sparkkkkie - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

Are you still here? I really need to fix this.

avatar zero-24
zero-24 - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

Alr but how can i apply those changes? Sorry im new.

Remove the things that are marked as "red" and add the lines that are green here: https://github.com/joomla/joomla-cms/pull/37074/files

avatar Sparkkkkie
Sparkkkkie - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

Alr but how can i apply those changes? Sorry im new.

Remove the things that are marked as "red" and add the lines that are green here: https://github.com/joomla/joomla-cms/pull/37074/files

Where do i have to add them? In what file?

avatar Sparkkkkie
Sparkkkkie - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

Alr but how can i apply those changes? Sorry im new.

Remove the things that are marked as "red" and add the lines that are green here: https://github.com/joomla/joomla-cms/pull/37074/files

?

avatar ChristineWk
ChristineWk - comment - 20 Mar 2022

I think @zero-24 means:

To remove "red" lines 29-46 and lines 57-74 in: /libraries/legacy/exception/exception.php

avatar Sparkkkkie Sparkkkkie - change - 20 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-20 18:57:57
Closed_By Sparkkkkie
avatar Sparkkkkie Sparkkkkie - close - 20 Mar 2022
avatar Sparkkkkie
Sparkkkkie - comment - 20 Mar 2022

Please go here https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/37074.diff and manually apply that changes to your instance. It will be shipped with the upcomming 3.10.7 release. But that only allows to show the error message for the real issue you have so please apply that change and show the error message you get :)

Alr but how can i apply those changes? Sorry im new.

Remove the things that are marked as "red" and add the lines that are green here: https://github.com/joomla/joomla-cms/pull/37074/files

Thanks! That worked! Im now closing this issue as it has now been fixed.

Add a Comment

Login with GitHub to post a comment