kingarthurpt / mod-random-article

A Joomla module that displays a random article.
1 stars 2 forks source link

Message error when displaying articles #69

Open guimenez opened 8 years ago

guimenez commented 8 years ago

Hi, when i show my articles, i can't put in 2 columms and i'm having this issue:

Warning: include(C:\xampp\apps\joomla\htdocs\modules\mod_random-article\css\style.php): failed to open stream: No such file or directory in C:\xampp\apps\joomla\htdocs\modules\mod_random-article\tmpl\default.php on line 102

Warning: include(): Failed opening 'C:\xampp\apps\joomla\htdocs\modules\mod_random-article\css\style.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\apps\joomla\htdocs\modules\mod_random-article\tmpl\default.php on line 102

Any help? Thank you

lapence commented 6 years ago

I am getting same error messages, has there been a fix yet for this?

aidil commented 6 years ago

This is just a quick fix:

  1. Find the default.php file in /modules/mod_random-article/tmpl/default.php
  2. Go to line 101 and comment the lines within the PHP block:

<?php // include JPATH_ROOT.DS.'modules'.DS.'mod_random-article'.DS.'css'.DS.'style.php'; // $document = JFactory::getDocument(); // $document->addStyleSheet(JURI::base().'modules'.DS.'mod_random-article'.DS.'css'.DS.'style.css'); ?>