Serhioromano / cobalt-9

Cobalt 9 Beta Test Group
11 stars 2 forks source link

mod_cobalt_filters issue #62

Closed gerrobb closed 8 years ago

gerrobb commented 8 years ago

I have been having issues with this module in both v 9.15 and v 9.18. And each time it occurs I assume it is something that I have done and reinstall from scratch using a fresh Joomla install along with Cobalt and then Emerald. I was having other issues and some of those were eliminated by also installing Emerald.

The problem is that when I use mod_cobalt_filter it throws a file not found error. The message is as follows: "Warning: require_once(/home/pizzadiscount/public_html/mint2/components/com_cobalt/library/php/helpers/api.php): failed to open stream: No

such file or directory in /home/pizzadiscount/public_html/mint2/modules/mod_cobalt_filters/mod_cobalt_filters.php on line 22

Fatal error: require_once(): Failed opening required

'/home/pizzadiscount/public_html/mint2/components/com_cobalt/library/php/helpers/api.php' (include_path='.:/usr/share/php:/usr/share/pear')

in /home/pizzadiscount/public_html/mint2/modules/mod_cobalt_filters/mod_cobalt_filters.php on line 22"

So it looks like api.php is in the wrong place. A workaround is making a copy of api.php from the component/com_cobalt/api.php and copying it to the requested location. Then as expected a new set of errors occurs. They are as follows:

"Fatal error: Cannot redeclare class CobaltApi in /home/pizzadiscount/public_html/mint2/components/com_cobalt/library/php/helpers/api.php on

line 78"

By commenting out from line 78 to the end of the file, everything seems to work again. The only exception that I have found so far is that is tag cloud throws a warning. But at least it doesn't take down the site like before!

gerrobb commented 8 years ago

Could have been my error! I just reinstalled the media pack and the problem isn't there anymore. I will test today to make sure and let you know.