fazer6 Posted November 20, 2011 Share Posted November 20, 2011 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 More sharing options...
Dave L Posted November 20, 2011 Share Posted November 20, 2011 Check your module permissions are correct. Link to comment Share on other sites More sharing options...
fazer6 Posted November 21, 2011 Author Share Posted November 21, 2011 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 More sharing options...
Dave L Posted November 21, 2011 Share Posted November 21, 2011 Yes, all module folders and their sub-folders should be writeable. If 755 doesn't work for you try 777. Link to comment Share on other sites More sharing options...
fazer6 Posted November 24, 2011 Author Share Posted November 24, 2011 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 More sharing options...
Dave L Posted November 24, 2011 Share Posted November 24, 2011 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 More sharing options...
fazer6 Posted November 24, 2011 Author Share Posted November 24, 2011 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 More sharing options...
Dave L Posted November 24, 2011 Share Posted November 24, 2011 Good to know it's sorted Link to comment Share on other sites More sharing options...
fazer6 Posted November 24, 2011 Author Share Posted November 24, 2011 Specials and top sellers are still down there and they're not on the tick box list on the main page to get rid of them so I'll have to see what else I need to turn off and on again to sort that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now