Jump to content

CMS Module Problem


Recommended Posts

On click to add new CMS block I get the following error

 

Warning: in_array()[function.in-array]: Wrong datatype for second argument in /home/SITE/public_html/shop/modules/blockcms/ajax_blockcms.php on line 85

 

and in the back office / modules

 

Editing the cms block, I have the following errors

 

Warning: Invalid argument supplied for foreach() in /home/SITE/public_html/shop/modules/blockcms/blockcms.php on line 330

 

Warning: Invalid argument supplied for foreach() in /home/SITE/public_html/shop/modules/blockcms/blockcms.php on line 373

 

I also can't seem to not have some of the cms pages display in my footer. I disable them, and then uninstall them, they're still in the footer.

 

 

Any ideas on what I should be tinkering with to get rid of the error messages, and how to get rid of the cms pages like specials that I don't want in my footer?

Link to comment
Share on other sites

It's set to 0644. I've checked my backup store (which has also been upgraded), and backup backup store (which I'd forgotton I'd also installed). Both of those are set to 0644 too so I'm presuming those are both correct. It's not meant to be 0755 is it?

Link to comment
Share on other sites

Hmm, well I've gone to 777 and when I click on block cms I'm getting

 

Warning: Invalid argument supplied for foreach() in /home/bluebir9/public_html/shop/modules/blockcms/blockcms.php on line 330

 

Warning: Invalid argument supplied for foreach() in /home/bluebir9/public_html/shop/modules/blockcms/blockcms.php on line 373

 

 

The lines it has a problem with are

foreach ($cms_blocks_left as $cms_block)

and

foreach ($cms_blocks_right as $cms_block)

Not that I have any idea what on earth to do now though to make those arguments valid. It aint so happy with something there.

 

And when I click on add cms block I no longer get a warning though so 1 down!

Link to comment
Share on other sites

I'm surprised it threw that error as a result of just changing folder permissions.

 

Maybe someone else could throw some light on it.

 

 

Edit:

 

I see you were getting that error before you change the permissions!

 

Try resetting the CMS block module.

Link to comment
Share on other sites

Well Dave you've solved it. And I cannot believe I didn't think of that. I mean seriously it's almost a cliche to 'turn it off and on again.' Maybe that is the answer to virtually all techie problems as it solves virtually all techie problems. From now on that will be the first thing I do.

 

Uninstall, Install.

 

Now it's working.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...