Extensions icon indicating copy to clipboard operation
Extensions copied to clipboard

[Share By Email] Warnings

Open math-GH opened this issue 1 year ago • 4 comments
trafficstars

FreshRSS 1.23.2-dev ShareByEmail 0.2.1

Warning: include(.../extensions/xExtension-ShareByEmail/mailers/View.php): Failed to open stream: No such file or directory in ...\extensions\xExtension-ShareByEmail\extension.php on line 28

Warning: include(): Failed opening '.../extensions/xExtension-ShareByEmail/mailers/View.php' for inclusion (include_path='...\php\PEAR') in ...\extensions\xExtension-ShareByEmail\extension.php on line 28

grafik

The file extensions/xExtension-ShareByEmail/mailers/View.php does not exist in this folder. There is just a Share.php file.

math-GH avatar Feb 29 '24 22:02 math-GH

Warning: include(.../extensions/xExtension-ShareByEmail/mailers/View.php): Failed to open stream: No such file or directory in ...\extensions\xExtension-ShareByEmail\extension.php on line 28

@marienfressinaud The file View.php is expected in the mailers directory but Share.php found.

How could we fix this issue correctly?

math-GH avatar Feb 01 '25 21:02 math-GH

@math-GH This error message does not seem up to date with the latest version of that extension. Could you please check that you are testing with 0.3.2?

Alkarex avatar Feb 02 '25 13:02 Alkarex

good point. I had 0.3.0. Now updated to 0.3.2 but more problems occured:

Warning: include(.../extensions/xExtension-ShareByEmail/mailers/View.php): Failed to open stream: No such file or directory in ...\extensions\xExtension-ShareByEmail\extension.php on line 32

Warning: include(): Failed opening '.../extensions/xExtension-ShareByEmail/mailers/View.php' for inclusion (include_path='...\php\PEAR') in ...\extensions\xExtension-ShareByEmail\extension.php on line 32

Deprecated: Creation of dynamic property Minz_View::$entry is deprecated in ...\extensions\xExtension-ShareByEmail\Controllers\shareByEmailController.php on line 45

Deprecated: Creation of dynamic property Minz_View::$to is deprecated in ...\extensions\xExtension-ShareByEmail\Controllers\shareByEmailController.php on line 60

Deprecated: Creation of dynamic property Minz_View::$subject is deprecated in ...\extensions\xExtension-ShareByEmail\Controllers\shareByEmailController.php on line 61

Deprecated: Creation of dynamic property Minz_View::$content is deprecated in ...\extensions\xExtension-ShareByEmail\Controllers\shareByEmailController.php on line 62

Warning: Undefined property: Minz_View::$rss_url in ...\app\layout\simple.phtml on line 39

math-GH avatar Feb 02 '25 16:02 math-GH

It doesn't seem to be linked to the code I wrote. But if I'm right, https://github.com/FreshRSS/Extensions/blob/master/xExtension-ShareByEmail/Controllers/shareByEmailController.php#L15 should be:

parent::__construct(ShareByEmail\Models\View::class);

And https://github.com/FreshRSS/Extensions/blob/master/xExtension-ShareByEmail/Models/View.php#L5 should be:

namespace ShareByEmail\Models;

marienfressinaud avatar Feb 03 '25 14:02 marienfressinaud