plychen Posted September 4, 2013 Share Posted September 4, 2013 Hi all, I can't move my CMS block pages. When I try to do it I just get this error:http://www.youtube.com/watch?v=u2_0OnUeAHQ&feature=youtu.be ( film of the error ) Warning: Invalid argument supplied for foreach() in /var/www/dygtighund.nu/public_html/classes/controller/AdminController.php on line 1134Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/dygtighund.nu/public_html/classes/controller/AdminController.php on line 1137 I really hope You can help Link to comment Share on other sites More sharing options...
stottycabanas Posted September 4, 2013 Share Posted September 4, 2013 If you're trying to resequence your CMS pges, try this thread: http://www.prestashop.com/forums/topic/271672-change-id-cms-pages Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 you're filtering by "position" there is no position "6" so varible with cms pages is empty. so foreach can loop on it, because variable is empty Link to comment Share on other sites More sharing options...
plychen Posted September 5, 2013 Author Share Posted September 5, 2013 And if I try to position it to no. 1 i get this error:Warning: Invalid argument supplied for foreach() in /var/www/dygtighund.nu/public_html/classes/controller/AdminController.php on line 1134Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/dygtighund.nu/public_html/classes/controller/AdminController.php on line 1137 And it go back to page before. It seems I can't do nothing? Link to comment Share on other sites More sharing options...
stottycabanas Posted September 5, 2013 Share Posted September 5, 2013 You can't change the order of the CMS pages by putting numbers in the filter row (I think that's what you're trying to do). There is a bug that needs to be fixed so that instead of seeing numbers below 'Position' you will see up/down arrows that allow you to move the pages into the order you want. Follow the link in my post #2 above and you will find the fix. You say that you want to 'move' your CMS block pages. If that doesn't mean that you want to change the order of the CMS pages, then you must explain what you're trying to achieve, as it's not 100% clear. Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 the solution is here: https://github.com/PrestaShop/PrestaShop/commit/453bb826ef2081175700b258b0ca799f3de605f6#controllers/admin/AdminCmsController.php Link to comment Share on other sites More sharing options...
plychen Posted September 5, 2013 Author Share Posted September 5, 2013 I will try what you suggest from the link.I want to move the last link "træning" to the top of the block called "træning". You see it here:http://dygtighund.nu/ Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 here? Link to comment Share on other sites More sharing options...
plychen Posted September 5, 2013 Author Share Posted September 5, 2013 No, but change the last link "træning" to be the first link in the box. Not the title! :-) Link to comment Share on other sites More sharing options...
stottycabanas Posted September 5, 2013 Share Posted September 5, 2013 The fix should allow you to do this. Let us know how you get on. Link to comment Share on other sites More sharing options...
plychen Posted September 5, 2013 Author Share Posted September 5, 2013 I will, thank you very much for your help. I will try and make the changes tonight when I have the time. :-) Link to comment Share on other sites More sharing options...
plychen Posted September 20, 2013 Author Share Posted September 20, 2013 It works now! Thanks a lot! 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