jonnsl / sliComments

Comments component for Joomla! 1.6
GNU General Public License v3.0
16 stars 5 forks source link

White page after upgrade #55

Closed szabolcstoth closed 10 years ago

szabolcstoth commented 10 years ago

Hi!

A run a Joomla site (version 2.5, latest), and I want to upgrade sliComments from 1.5.1 to 1.6.2. After the upgrade I can't open the component's page in the administrator's backend, I just get a white page. And this also happens, if I want to open an article in the frontend with comment's enabled.

What can cause this?

Thanks,

jonnsl commented 10 years ago

go to 'Global Configuration' -> 'Server' and set 'Error Reporting' to 'Maximum'. access the blank page and see if any error message appears.

szabolcstoth commented 10 years ago

On the frontend:

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/libraries/loader.php on line 16
Warning: include(__DIR__/2.5/controller.php) [function.include]: failed to open stream: No such file or directory in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/libraries/loader.php on line 16
Warning: include() [function.include]: Failed opening '__DIR__/2.5/controller.php' for inclusion (include_path='.:/opt/php5.2/lib/php') in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/libraries/loader.php on line 16
Fatal error: Class 'sliController' not found in /var/users/scifihu/firefly/web/components/com_slicomments/controllers/comments.php on line 13

On the administrator page:

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/slicomments.php on line 17
Warning: require_once(__DIR__/libraries/loader.php) [function.require-once]: failed to open stream: No such file or directory in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/slicomments.php on line 17
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/libraries/loader.php' (include_path='.:/opt/php5.2/lib/php') in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/slicomments.php on line 17

I checked, the loader.php can be found here: administrator/components/com_slicomments/libraries/

The 1.5.1 is the last version, which is working.

jonnsl commented 10 years ago

If possible upgrade your php version to 5.3.x, if this is not possible you can try replace all occurrences of "DIR" with "dirname(FILE)" (without the quotes) in the files administrator/components/com_slicomments/libraries/loader.php and administrator/components/com_slicomments/slicomments.php , but I can't guarantee that this extension will work in php 5.2.x