Banners are not loading

Memovie Joomla Template support forum for Joomla 1.5 only.
GK User
Thu Sep 09, 2010 8:59 pm
Since the upgrade to the latest version of memovie template, I have a problem with the banners (default Joomla component and module). Sometimes the banners are not loaded, instead of banners I get the following error on the front page in the module position where banners should be loaded:

Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxx/public_html/templates/gk_memovie/html/mod_banners/default.php on line 98



This only happens on the home page, on the other pages everything is ok.

EDIT: When banners are not loaded, Gavick image show module also is not loaded, but there is no error reports for this module.
User avatar
Fresh Boarder

GK User
Thu Sep 09, 2010 9:47 pm
Have all the folders chmod 777 permissions?
User avatar
Junior Boarder

GK User
Thu Sep 09, 2010 10:54 pm
4ndreas wrote:
Have all the folders chmod 777 permissions?


I think that this is not the problem, because as I said they sometimes load, sometimes don't. My folder permissions are 755.

When an error occurs, and when I refresh the page, they almost every time load properly.

Maybe it's good to say what I tried to do so far to repair the errors, but without results, errors are still there:

- enable/disable cache
- enable/disable gzip
- Server settings -> Error reporting: None

P.S. Sorry for bad english.
User avatar
Fresh Boarder

GK User
Fri Sep 10, 2010 2:32 am
Hi

Are you sure that you update properly all files?
../gk_memovie/html/mod_banners/default.php file doesn't have line 98. :huh:


Cheers
User avatar
Platinum Boarder

GK User
Fri Sep 10, 2010 2:33 pm
Seichinha wrote:
Hi

Are you sure that you update properly all files?
../gk_memovie/html/mod_banners/default.php file doesn't have line 98. :huh:


Cheers


In this way I did update, uninstall the old version, and install a new through Joomla->Extension->Install/Uninstall, so I do not know whether all files properly updated, current version is 2.0.0.

But after your tip I re-upload the gk_memovie/html/mod_banners/default.php file through ftp, overwrite existing with new file, and now I get the same error, but on the line 51. :unsure:

After update I only made minor changes in the template.css, and changed backgroung image.
User avatar
Fresh Boarder

GK User
Fri Sep 10, 2010 8:57 pm
Here is example how it looks in banner1 module position.

Image
User avatar
Fresh Boarder

GK User
Sat Sep 11, 2010 5:30 pm
I believe that this is not customization problem.
User avatar
Fresh Boarder

teitbite
Sun Sep 12, 2010 1:47 pm
Hi

Please send me ftp access details.
User avatar
Moderator

teitbite
Sun Sep 19, 2010 3:01 pm
Hi

I can see it working right now. What was the problem?
User avatar
Moderator

GK User
Sun Sep 19, 2010 6:09 pm
They sometimes load, sometimes don't. :(

I have a lot of screenshots where the error is visible, even Google cached page several times with this error.

Problematic banners are in these module positions: banner1, header1 and header2.

The fourth banner at position right_top never caused any errors.

I updated template to the last version but errors still occur from time to time.

P.S.

Sorry for bad english.
User avatar
Fresh Boarder

teitbite
Mon Sep 20, 2010 10:34 am
Hi

So it's probably only for some configuration or due to some connection problem. Please try to add just befor the line from error this code:

Code: Select all
      if( !is_array($list) ) $list = array();
User avatar
Moderator

GK User
Mon Sep 20, 2010 6:26 pm
teitbite wrote:
Hi

So it's probably only for some configuration or due to some connection problem. Please try to add just befor the line from error this code:

Code: Select all
      if( !is_array($list) ) $list = array();


Thank you.
User avatar
Fresh Boarder


cron