On one of the five computers, when sending an ajax request, the answer comes GIF89a .... Googled, sort of like some kind of error, but I didn’t really find anything. Maybe someone came across? In the ajax.php method, there is nothing special, one sample from the base and basically everything, and it’s interesting that everything works fine on the remaining 4 pc

  • Looking bad. stackoverflow.com/questions/3597082/… - Urmuz Tagizade
  • I apologize, of course, but can you specifically tell me how to help? - Anatoly
  • Share the code, please, to make it easier to work on the bugs. We won’t guess - Urmuz Tagizade
  • Already at this stage everything is bad $ .ajax ({url: '/ arenda / default / check_for_view_ad_name', type: "POST", data: ({cat_id: $ (". Ad_cat"). Val ()}), success: function (html) {html = html.split (';'); console.log (html [1]);}}); - Anatoly
  • public function actionCheck_for_view_ad_name () {$ cat_id = Yii :: $ app-> request-> post ('cat_id'); $ result = ModArendaTree :: findOne (['id' => $ cat_id]); while ($ result-> use_name_for_ads! = 1) {if ($ result-> parent_id! = 0) {$ result = ModArendaTree :: findOne (['id' => $ result-> parent_id]); } else return 0; } if ($ result-> use_name_for_ads == 1) $ name = $ result-> name_for_ads; else $ name = 'none'; return $ result-> use_name_for_ads. ';' . (empty ($ name)? 'Ad name': $ name); } - Anatoly

0