Blesta Addons Posted September 5, 2015 Report Posted September 5, 2015 when we have a Appcontroller.structure event that inject some html or javascript code (specially a ajax request to a controller) , it keep redirecting with infinit loop . i suggest make a special structure for maintenance mode or disable the event structure for client side in maintenance mode . PauloV 1 Quote
Tyson Posted September 5, 2015 Report Posted September 5, 2015 Could you provide an example test case where this occurs? Quote
Blesta Addons Posted September 6, 2015 Author Report Posted September 6, 2015 the sample one , i have added a event.structure that inject a ajaxed request $(document).ready(function() { fetch_data_items(); }); function fetch_data_items() { $(this).blestaRequest("GET", "' . $this->Html->safe($this->base_uri . "plugin/xxxx/index/get_data/") . '", null, function(data) { if (data) $(".data_items").html(data); }, null, {dataType:"json"}); } in maintenance mode , the url is returning a 404 error , and every time the page is requesting the data and cause a infinite loop . i have resolved the error by disabling the displaying of head, body_start and body_end in maintenance mode in the structure.pdt . what i think , maintenance mode should only show the maintenance message without caring about including the files the javascripts ..ect . Quote
Tyson Posted September 25, 2015 Report Posted September 25, 2015 You can follow this issue in CORE-1821. Blesta Addons 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.