JoomShaper / Helix3

46 stars 37 forks source link

Class 'helix3' not found in frontediting_modules.php (problem with Kunena) #20

Closed Sulpher closed 7 years ago

Sulpher commented 8 years ago

Hello, I've noticed one bug that appears in Kunena when Helix 3 is enabled. Kunena uses own positions and the trick is that we can display Joomla modules in Kunena positions. For instance, I used custom HTML module and write Lorem Ipsum text there. I assigned this module in Kunena position kunena_msg_1 (the module to be appeared after the first post in the discussion) It works with default Protostar template and Blue Eagle template (Kunena). Bur when I assign Helix 3 v.1.2 as a Joomla template it works too, but only for guests. When I log in at the front-end, I got the following error:

500 Internal Server Error Fatal Error was detected! Please contact the site owner.

There is no such problem if I disable custom HTML module or log out.

I examined error_log and found these entries:

[27-Feb-2016 10:17:10 Europe/Berlin] PHP Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/kunena/templates/shaper_helix3/html/layouts/joomla/edit/frontediting_modules.php on line 63 [27-Feb-2016 10:17:15 Europe/Berlin] PHP Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/kunena/templates/shaper_helix3/html/layouts/joomla/edit/frontediting_modules.php on line 63 [27-Feb-2016 10:18:04 Europe/Berlin] PHP Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/kunena/templates/shaper_helix3/html/layouts/joomla/edit/frontediting_modules.php on line 63 [27-Feb-2016 10:19:19 Europe/Berlin] PHP Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/kunena/templates/shaper_helix3/html/layouts/joomla/edit/frontediting_modules.php on line 63 [27-Feb-2016 10:19:20 Europe/Berlin] PHP Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/kunena/templates/shaper_helix3/html/layouts/joomla/edit/frontediting_modules.php on line 63 [27-Feb-2016 10:20:05 Europe/Berlin] PHP Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/kunena/templates/shaper_helix3/html/layouts/joomla/edit/frontediting_modules.php on line 63

System information: Joomla 3.4.8 Kunena 4.0.10 Helix 3 v 1.2 PHP 5.6.10

Thank you.

duksh commented 7 years ago

I got the same with following:

Fatal error: Class 'helix3' not found in /Applications/MAMP/htdocs/afnet24/stageit/templates/shaper_news365/html/layouts/joomla/edit/frontediting_modules.php on line 63

nayemmajhar commented 7 years ago

@810 could you check this issue for us and add possible fix.

rifatwahid commented 7 years ago

Hi, Could you please add this code in following file templates/shaper_news365/html/layouts/joomla/edit/frontediting_modules.php on 20 no line:

$helix3_path = JPATH_PLUGINS.'/system/helix3/core/helix3.php';

if (file_exists($helix3_path)) {
    require_once($helix3_path);
} else {
    return 'Please install/enable helix3 plugin';
}
cipt2001 commented 7 years ago

This seems to fix the issue for me. Thanks!