WeChat development learning diary (5): bugs in the weiphp open source framework, public account permission editing issues
Release: 2016-08-08 09:26:06
Original
1258 people have browsed it
I’ve been studying Weiphp recently, and overall I feel it’s pretty good. It’s said that there are quite a lot of bugs. No, I encountered one that seriously affected my use. It seems unlikely that such a serious bug should occur. Weiphp’s WeChat official account level, permission increase and bug editing, I can’t see the permission list, I can only see two incorrect plug-in names, “Good People” and “Environment”.[System BUG] User permissions cannot be displayed properlyProblem description: User->Public Account Level->Edit Two plug-ins, Good People and Environment, appearSolution: Add a new public account in the background Level errorAddress http://****.com/Admin/PublicGroup/add/model/13.htmlThe corresponding plug-in is not listedReason: The upgrade modified the get_model_attribute( in ApplicationCommonCommonfunction.php ) function) caused the array subscript name to change. The content that could be obtained through $fields [1] [1] could no longer be obtained. The problem was solved after using $fields [1] ['addon_status'] instead. ,Replace $fields [1] [1] with $fields [1] ['addon_status'] in ApplicationAdminControllerPublicGroupController.class.php. Note: This problem exists for additions and modifications. When editing, another problem is that the selected plug-in is "not selected".Solution: //$data ['addon_status'] = array_diff ( $fields [1] [1] ['value'], $data ['addon_status'] );$data [ 'addon_status'] = array_diff ( $fields [1] ['addon_status'] ['value'], $data ['addon_status'] );-------------- ----Please ignore the following---------------The second one: [System BUG] There is a problem with the background management settings authorization plug-in (it seems to be the same as the first one) A problem, this code will not be changed)Problem description:=/admin/PublicLink/lists/mp_id/107.htmlOperation: Backstage Management-> Official Account Management-> Administrator Configuration- >Edit authorized plug-ins->ConfirmPosition: [Relationship between official account and administrator] ListProblem: Authorized plug-ins are reset to empty and can no longer be edited) It happened once, reinstalled it, and I didn’t dare to try it a second timeSolution: I have also encountered this problem and have reported it to the official. ApplicationCommonCommonfunction.php file has a problem with obtaining attribute information and caching the get_model_attribute function. This function works fine with version 2.0 in August.In version 12.2, line 1024 of the get_model_attribute function should be modified to: $value [$val] = $attr [$val]; to: $value [$key] = $attr [$val ]; More issues are still being studied. Jiutianniao Q&A: http://ask.jiutianniao.comWuhan Jiutianniao: Mobile Internet system developer
The above introduces the WeChat development learning diary (5): bugs in the weiphp open source framework, public account permission editing issues, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31