Bug on install, terror on uninstall

More
1 year 2 months ago - 1 year 2 months ago #400 by apradoc
The Digi Showcase module was installed, but when you wanted to create a new module, the form looked unstyled and obviously incomplete in an HTML view.

Additionally it was impossible to create any other different module. DigiShowcase's HTML view always appeared.

Finally, managing the uninstallation, I first disabled the module and then requested the uninstallation.

The failure was repeated when I wanted to create a new module other than Digi (... sure, it was no longer installed!) But I was very happy to refresh the page and see the form of another joomla module ready to be configured.

To finalize some details:
- Helix3 template
- SP PageBuilder
- No extraordinary modification in the Control Panel.

I'm not using the extension anymore, which looks very attractive and useful. I hope this information is useful for the registry.

Translated by Google
Attachments:
Last edit: 1 year 2 months ago by apradoc. Reason: Uninstall the extension, bug is missing

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

More
1 year 1 month ago #401 by Andreas
I have the same issue with nearly the same conditions:

framework Helix 3

Bye, Andreas

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

More
1 year 1 month ago #402 by Gregorio
Hello everyone, sorry for long time reply. Just a week of holidays here.

It looks like the module finds some folders with some wrong permissions.

Let's check: are you running under LInux or WIndows? Joomla version? PHP version? Thanks for your time.

Kind regards,
Gregorio

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

More
1 year 1 month ago #403 by Andreas
Hello Gregorio,

here is my configuration:
Linux
PHP 7.3.21
Joomla! 3.9.20
Helix 3 framework and template Version 2.5.7

All directories are writeable.

I have install the Digi Showcase module again and try to open the module example and found the following error at the end of the page:
Fatal error: Cannot redeclare file_get_html() (previously declared in /path of joomla installation/plugins/content/easyimagecaption/inc/simple_html_dom.php:48) in /path of joomla installation/modules/mod_digi_showcase/include/simple_html_dom.php on line 98

So it seems that there is a redeclare.

Perhaps this helps you to solve the problem.

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

More
1 year 1 month ago - 1 year 1 month ago #417 by Gregorio
Hello Andreas, many thanks for your debug.

Ies, it seems to be a redeclare of a PHP library that our module declares in its helper file. Probably you have it declared already in a plugin called "Easyimagecaption".

By the way, I've made an amended script for the module helper file which includes the PHP library if hasn't been already declared.

Please, open the helper file located into the module folder and replace the code at lines 18-27 by this.

It seems to work. If you confirm, I can include it in the next module update, available for everyone.

Thanks for your collaboration,
have a nice day.

// include other files with the right path depending if this helper is an override or it's the default one
if (file_exists(dirname(__DIR__, 1).DS.'override'.DS.'helper.php')) {
	if (!function_exists('str_get_html')) {
		require_once dirname(__DIR__, 1).DS.'include'.DS.'simple_html_dom.php';
	}
	require_once dirname(__DIR__, 1).DS.'include'.DS.'image_resizer.php';
	include_once dirname(__DIR__, 1).DS.'administrator'.DS.'elements'.DS.'digigreg_api.php';
} else {
	if (!function_exists('str_get_html')) {
		require_once dirname(__FILE__).DS.'include'.DS.'simple_html_dom.php';
	}
	require_once dirname(__FILE__).DS.'include'.DS.'image_resizer.php';
	include_once dirname(__FILE__).DS.'administrator'.DS.'elements'.DS.'digigreg_api.php';
}
Last edit: 1 year 1 month ago by Gregorio.
The following user(s) said Thank You: apradoc

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

More
1 year 3 weeks ago #423 by apradoc
It's great friend!

Everything works very, very well
The extension is wonderful!

Right now adjusting the styles and attending to other matters

Many thanks. When I finish configuring, I will make a few good comments on the JED.

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

Powered by Kunena Forum