State/Province Dropdown not working in dashboard Edit Properties when editing Multiple Users
Permalink 1 user found helpfulWhen you select a group of users to "mass edit", choose Edit Properties, and then edit the address... the dropdown for State/Province is there but doesn't let you select anything. If you save the edit, it completely drops the State entirely. Like all the previous posts, you can change the address fine at the individual User level. This only occurs when you are editing the address for multiple users in Edit Properties.
This is critical... we have over 900 Users and this messes with our mailing list and the user output doesn't sort properly.

One thing that works to have choices in the list of states is to select another country and then re-select United States.
You can easily fix that actually.
go to root/concrete/models/attribute/types/address and copy the file form.php
Go put that copy in root/models/attribute/types/address so as to override the original one.
Now at the bottom of the new file you have this:
<script type="text/javascript"> //<![CDATA[ $(function() { ccm_setupAttributeTypeAddressSetupStateProvinceSelector('ccm-attribute-address-<?php echo $key->getAttributeKeyID()?>'); }); //]]> </script>
You need to add a line to it like so:
<script type="text/javascript"> //<![CDATA[ $(function() { ccm_setupAttributeTypeAddressSetupStateProvinceSelector('ccm-attribute-address-<?php echo $key->getAttributeKeyID()?>'); ccm_attributeTypeAddressSelectCountry('ccm-attribute-address-<?php echo $key->getAttributeKeyID()?>', '<?php echo $country?>'); }); //]]> </script>
And that's all.
You might have to empty your cache to see it work depending on your cache settings.
"Warning: Illegal string offset 'class' in /home6/barking8/public_html/new_azsa/updates/concrete5.6.2.1_updater/concrete/core/helpers/form.php on line 404" yet it now allows me to add the State with no problem. I've included a screenshot as well. I tested it with a couple different sets of Users and it is working... just throwing that error too.
What version of PHP are you using?
Other than telling you to try 5.3 I have no idea.
You can test a few things though.
1- Delete the line I told you to add but keep the file in place.
2- bring all the other files from the original folder to the new folder so the whole attribute is overridden.
In both case see if the error still appears
Warning: Illegal string offset 'class' in /home6/barking8/public_html/new_azsa/concrete/core/helpers/form.php on line 404
I wish at times like this Concrete5 would chime in and kick it upstairs for some help.
Just keep the one file since the others didn't change anything; and add a on dom ready around the added line like so:
<script type="text/javascript"> //<![CDATA[ $(function() { ccm_setupAttributeTypeAddressSetupStateProvinceSelector('ccm-attribute-address-<?php echo $key->getAttributeKeyID()?>'); $(document).ready(function() { ccm_attributeTypeAddressSelectCountry('ccm-attribute-address-<?php echo $key->getAttributeKeyID()?>', '<?php echo $country?>'); }); }); //]]> </script>
Warning: Illegal string offset 'class' in /home6/barking8/public_html/new_azsa/concrete/core/helpers/form.php on line 404
You'll have to PM me so I can send you something for your help! You are awesome!
Let's try one last thing. Total shot in the dark but you never know.
Put the form.php file I have attached in root/helpers (the first file we modified should still be in place) and see if it solves the problem
Warning: Illegal string offset 'class' in /home6/barking8/public_html/new_azsa/helpers/form.php on line 34
Thanks again for taking another shot at it... I'm just happy that it doesn't affect anything. We can live with a cosmetic error in reality.
I sent you a PM by the way in case you need some freelance done in the future.