Support ⇒ Upgrades ⇒ Unable to change Block positions in 9.2.1 ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexUpgrades

Unable to change Block positions in 9.2.1 Reply to topic


Hello all,

I just did a clean upgrade to 9.2.1 and i have problems moving blocks into position.

Imaging 3 blocks on either side , lets take left for instance, i would like to change the block position from 1, 2, 3, to 3, 1, 2 for the news section, after rearranging and clicking on update changes, it seems to go back to position 1,2,3! I didnt have this problem with the older version. I also tried in IE 6.0 and Firefox 2.0.12 but it was the same. I am using the default dragonfly theme at the moment.

I watched dizfunkshunal's video on how to manage blocks to make sure i am doing it correctly , tried re uploading just the basic Dragonfly CMS but i am still getting this error, what else can i try?

Thank you.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.2.0 /MySQL 5.0.81/ PHP 5.2.9/ CPG 9.2.1


One of our user had the same issue.

I need to be sure before getting to the wrong conclusions, please open admin/modules/blocks.php and somewhere at the top (very first lines of code) add
echo '<pre>'; print_r($_POST); echo '</pre>';

After you "update changes" I need to know if the $_POST is getting cut out at half of its size, if you are not able to tell post here the output.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Hello NanoCaiordo,

After clicking on update changes, this is the result

Array
(
[id] => Array
(
[0] => -1
[1] => 1
[2] => 13
[3] => 2
[4] => 34
[5] => 12
[6] => 32
[7] => 3
[8] => 33
[9] => 25
[10] => 41
[11] => 27
[12] => 20
[13] => 5
[14] => 6
[15] => 9
[16] => 7
[17] => 8
[18] => 21
[19] => -1
[20] => -1
[21] => -1
[22] => -1
[23] => -1
[24] => 1
[25] => 3
[26] => 53
[27] => 32
[28] => 41
[29] => -1
[30] => -1
[31] => -1
[32] => 12
[33] => 13
[34] => 20
[35] => 21
[36] => 25
[37] => 27
[38] => 34
[39] => 48
)

[mid] => Array
(
[0] => -1
[1] => -1
[2] => -1
[3] => -1
[4] => -1
[5] => -1
[6] => -1
[7] => -1
[8] => -1
[9] => -1
[10] => -1
[11] => -1
[12] => -1
[13] => -1
[14] => -1
[15] => -1
[16] => -1
[17] => -1
[18] => -1
[19] => -1
[20] => -1
[21] => -1
[22] => -1
[23] => 53
[24] => 53
[25] => 53
[26] => 53
[27] => 53
[28] => 53
[29] => 53
[30] => 53
[31] => 53
[32] => 53
[33] => 53
[34] => 53
[35] => 53
[36] => 53
[37] => 53
[38] => 53
[39] => 53
)

[module] => Array
(
[0] => Admin
[1] => Admin
[2] => Admin
[3] => Admin
[4] => Admin
[5] => Admin
[6] => Admin
[7] => Admin
[8] => Admin
[9] => Admin
[10] => Admin
[11] => Admin
[12] => Admin
[13] => Admin
[14] => Admin
[15] => Admin
[16] => Admin
[17] => Admin
[18] => Admin
[19] => Admin
[20] => Admin
[21] => Admin
[22] => Admin
[23] => Blogs
[24] => Blogs
[25] => Blogs
[26] => Blogs
[27] => Blogs
[28] => Blogs
[29] => Blogs
[30] => Blogs
[31] => Blogs
[32] => Blogs
[33] => Blogs
[34] => Blogs
[35] => Blogs
[36] => Blogs
[37] => Blogs
[38] => Blogs
[39] => Blogs
)

[side] => Array
(
[0] => l
[1] => l
[2] => l
[3] => l
[4] => l
[5] => l
[6] => l
[7] => l
[8] => l
[9] => l
[10] => l
[11] => l
[12] => l
[13] => l
[14] => l
[15] => l
[16] => l
[17] => l
[18] => l
[19] => c
[20] => d
[21] => r
[22] => n
[23] => l
[24] => l
[25] => l
[26] => l
[27] => l
[28] => l
[29] => c
[30] => d
[31] => r
[32] => r
[33] => r
[34] => r
[35] => r
[36] => r
[37] => r
[38] => r
[39] => r
)

[weight] => Array
(
[0] => -1
[1] => 1
[2] => 2
[3] => 3
[4] => 4
[5] => 5
[6] => 6
[7] => 7
[8] => 8
[9] => 9
[10] => 10
[11] => 11
[12] => 12
[13] => 13
[14] => 14
[15] => 15
[16] => 16
[17] => 17
[18] => 18
[19] => -1
[20] => -1
[21] => -1
[22] => -1
[23] => -1
[24] => 1
[25] => 2
[26] => 3
[27] => 4
[28] => 5
[29] => -1
[30] => -1
[31] => -1
[32] => 1
[33] => 2
[34] => 3
[35] => 4
[36] => 5
[37] => 6
[38] => 7
[39] => 8
)

)

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.2.0 /MySQL 5.0.81/ PHP 5.2.9/ CPG 9.2.1


Yes, it gets cut out even before its half.

Its a server related configuration issue, there is nothing that you can do.

If you are able to get your system admin to contact me i could give him the answer for a small fee just because they are hosting a DragonflyCMS user (will also take some issues off some other users), otherwise change host or CMS. By changing host or CMS doesn't guarantee you that you are not going to have the same issue.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


I see, I will check with the admin then to contact you .

Thanks for the fast response.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 2.2.0 /MySQL 5.0.81/ PHP 5.2.9/ CPG 9.2.1


He does have very good clues on this post, he might be able to solve your issue whit out my help.

Just point him to this topic, then will be his choice to contact me.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Cavey,

Did your host ever resolve this issue? I'm encountering a similar issue (even with the default theme) and am at a loss on what to do to resolve this. My host loves to blame CMS sites as the cause for their server load, I've had my account suspended twice in the last year for causing a load on the server, according to them).

Any advice would be greatly appreciated. Thank you.

EHP Webmaster
www.ehpdesigns.com

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux OS / Apache 1.3.34 / MySQL 4.1.22 / PHP 4.4.7/ DF 9.1.2.1


I think on this one the max_post_size needs to be higher. Don't quote me on this one it has been awhile since I encountered this issue.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


Maybe has something to do with this:
dragonflycms.org/Forum...69/#144869

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


Eestlane wrote
Maybe has something to do with this:
dragonflycms.org/Forum...69/#144869


That link worked perfectly, adding those two lines into my php.ini file really did the trick =) Now I can edit my block weight AND my CPGMM order!!! Thank you!!!

EHP Webmaster
www.ehpdesigns.com

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux OS / Apache 1.3.34 / MySQL 4.1.22 / PHP 4.4.7/ DF 9.1.2.1


I almost had it lol Glad its fixed!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


So mine did a SUPER long one, and ended with this:


[1563] => 1
[1564] => 2
[1565] => 3
[1566] => 4
)

)


Is that still cutting off?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
[ Linux / Apache 2.2.8 / MySQL 5.0.45 / PHP 5.2.6 / CPG 8.2b - 9.3.4.1]


FYI, recently encountered this with a Host who does not use Suhosin. Update failed even on default theme.

Turns out there is another PHP variable which can have the same limiting effect: max_input_vars = 1000

Anything in this range is likely to cause a problem. Blocks uses 5 array slices, so 20 modules and 10 blocks will reach 100 entries. 100 * 5 = 1000.

Include Nano's code from the beginning of this thread here, and if the array indexes listed stop at {your_max_input_vars_number} / 5 then you need to raise this limit.

max_input_vars = 2000 should get you rolling again.

Note the above is applicable from PHP v 5.3.9.

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


I found that I'm getting caught by this max_input_vars value as I add modules/blocks.

So rather than the temporary diagnostic code referenced above, I'm now adding this permanently to my admin/modules/blocks.php after line 19:

if (isset($_POST['id'][0]) && !isset($_POST['updateblocks'])) { $input_vars = count($_POST['id']); echo 'Whoops! - Received vars count is limited to '.$input_vars.' - Need max_input_vars raised above '.$input_vars*5; }

It does nothing if max_input_vars is large enough, but if not it sends an echo statement to the screen.

Works by simply looking to see if it receives the first of the block array fields, but not the Update request - which comes at the very end.

(Unfortunately I couldn't figure out how to predict the required size - which would be useful!)

Note max_input_vars = 1000 is the default setting with PHP 5.3.9 and later.

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


Just to remind everyone, the latest stable was modified to avoid any of the above issues.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS

All times are UTC


Jump to: