Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: #1515

Open
GregMage opened this issue Feb 5, 2025 · 4 comments
Open

[Bug]: #1515

GregMage opened this issue Feb 5, 2025 · 4 comments

Comments

@GregMage
Copy link
Contributor

GregMage commented Feb 5, 2025

XOOPS Version

2.5.11

PHP Version

8.1

Operating System

Windows

Description

Error : Error: Failed opening required '/xoops_lib/modules/protector/library/HTMLPurifier/Bootstrap.php' (include_path='.;C:/php/pear')

Steps to Reproduce

/

@GregMage
Copy link
Contributor Author

GregMage commented Feb 5, 2025

Avertissement: require_once(/xoops_lib/modules/protector/library/HTMLPurifier/Bootstrap.php): failed to open stream: No such file or directory dans le fichier /class/smarty3_plugins/modifier.truncateHtml.php ligne 33

@GregMage
Copy link
Contributor Author

GregMage commented Feb 5, 2025

change:
if (!class_exists('\HTMLPurifier_Bootstrap', false)) { require_once XOOPS_PATH . '/modules/protector/library/HTMLPurifier/Bootstrap.php'; HTMLPurifier_Bootstrap::registerAutoload(); }

with:

if (!class_exists('\HTMLPurifier_Bootstrap', false)) { require_once XOOPS_PATH . '/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php'; HTMLPurifier_Bootstrap::registerAutoload(); }

@mambax7
Copy link
Collaborator

mambax7 commented Feb 5, 2025

Can you replace

    require_once XOOPS_PATH . '/modules/protector/library/HTMLPurifier/Bootstrap.php';
    HTMLPurifier_Bootstrap::registerAutoload();

with :

require_once XOOPS_TRUST_PATH . '/vendor/ezyang/htmlpurifier/library/HTMLPurifier.auto.php';

and let me know if it worked?

mambax7 added a commit to mambax7/XoopsCore25 that referenced this issue Feb 6, 2025
@mambax7
Copy link
Collaborator

mambax7 commented Feb 6, 2025

Based on my tests, this should fix that: #1516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants