Fatal error: Unsupported operand types in usercp and PM
Collapse
X
-
-
yes, where we go in phpmyadmin to fix it?
i really need help here ..
thanks.Comment
-
-
You can have folders with the same name, so I would just do this:
For every instance ofCode:s:NUMBER:"TEXT";
Code:s:14:"Renamed folder"
So if you have a user with the following data:
Code:a:2:{i:1;s:6:"[FONT="]الوارد[/FONT]";i:2;s:6:"[FONT="]الصادر[/FONT]";}
Code:a:2:{i:1;s:14:"Renamed folder";i:2;s:14:"Renamed folder";}
Be sure to back up your database before trying this, and/or try it on a test installation first.
the table that the data is stored in is vb_usertextfield
thanks all.Comment
-
Solution for User panel problem
Got the same problem yesterday. Length of string containing native symbols in UTF-8 doesn't equal to its length in original encoding. Users having such PM folders or subfolders names can't use usercp. So you need to fix it.
Wrote little script which convert all wrong serialized arrays and update pmfolders and subfolders fields at usertextfield table if it needed.
How to use:
1. Make a copy of your usertextfield table
2. Change $old_encoding in the script to your original encoding
3. Put the script to the forum server
4. Run it
5. If it needed, change encoding to UTF-8 in your browser
6. Examine the output. Red lines are the strings to be changed. 's' value in original and new strings differs.
7. Press 'Repair!'
8. If it is OK, there will be green status 'OK' in each line
9. Press 'Refresh' link at the bottom. There shouldn't be any red lines anymore.
fyi, there are some other places where you should update serialized arrays. For example, I had several own created profile fields in profilefield table which didn't work too. Fixed it manually.Attached Files👍 3Comment
-
Got the same problem yesterday. Length of string containing native symbols in UTF-8 doesn't equal to its length in original encoding. Users having such PM folders or subfolders names can't use usercp. So you need to fix it.
Wrote little script which convert all wrong serialized arrays and update pmfolders and subfolders fields at usertextfield table if it needed.
How to use:
1. Make a copy of your usertextfield table
2. Change $old_encoding in the script to your original encoding
3. Put the script to the forum server
4. Run it
5. If it needed, change encoding to UTF-8 in your browser
6. Examine the output. Red lines are the strings to be changed. 's' value in original and new strings differs.
7. Press 'Repair!'
8. If it is OK, there will be green status 'OK' in each line
9. Press 'Refresh' link at the bottom. There shouldn't be any red lines anymore.
fyi, there are some other places where you should update serialized arrays. For example, I had several own created profile fields in profilefield table which didn't work too. Fixed it manually.Comment
-
Got the same problem yesterday. Length of string containing native symbols in UTF-8 doesn't equal to its length in original encoding. Users having such PM folders or subfolders names can't use usercp. So you need to fix it.
Wrote little script which convert all wrong serialized arrays and update pmfolders and subfolders fields at usertextfield table if it needed.
How to use:
1. Make a copy of your usertextfield table
2. Change $old_encoding in the script to your original encoding
3. Put the script to the forum server
4. Run it
5. If it needed, change encoding to UTF-8 in your browser
6. Examine the output. Red lines are the strings to be changed. 's' value in original and new strings differs.
7. Press 'Repair!'
8. If it is OK, there will be green status 'OK' in each line
9. Press 'Refresh' link at the bottom. There shouldn't be any red lines anymore.
fyi, there are some other places where you should update serialized arrays. For example, I had several own created profile fields in profilefield table which didn't work too. Fixed it manually.
Спасибо брат за отличное решение!Comment
-
Got the same problem yesterday. Length of string containing native symbols in UTF-8 doesn't equal to its length in original encoding. Users having such PM folders or subfolders names can't use usercp. So you need to fix it.
Wrote little script which convert all wrong serialized arrays and update pmfolders and subfolders fields at usertextfield table if it needed.
How to use:
1. Make a copy of your usertextfield table
2. Change $old_encoding in the script to your original encoding
3. Put the script to the forum server
4. Run it
5. If it needed, change encoding to UTF-8 in your browser
6. Examine the output. Red lines are the strings to be changed. 's' value in original and new strings differs.
7. Press 'Repair!'
8. If it is OK, there will be green status 'OK' in each line
9. Press 'Refresh' link at the bottom. There shouldn't be any red lines anymore.
fyi, there are some other places where you should update serialized arrays. For example, I had several own created profile fields in profilefield table which didn't work too. Fixed it manually.
after I change encoding to UTF-8 some users have trouble login.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment