Templates Page bug

corey34

Active Member
I have a weird issue happening in /customer/templates/index. The page does not work for some of my customers but other customers it's fine. Below is an image of what I see for a customer that it's not working for. For one of the customers, I clicked the "refresh" link and it worked for a while but not anymore. Other customers this doesn't work at all.

FYI, this is an older version 1.3.8.5 (still testing the newest update).

upload_2017-10-10_13-29-21.png
 
This happens because the screenshot of one of the templates is too large and takes all the memory while we try to resize it, so assigning more memory to PHP will fix this.
 
@corey34 - enable debug and then look in the error page, but look in the page source. You'll see the pages ends with an error about memory not being enough.
 
@corey34 - enable debug and then look in the error page, but look in the page source. You'll see the pages ends with an error about memory not being enough.
I just enabled debug but no debug content shows at the bottom of that page. I checked other places in the dashboard and debug is working, but nothing on that page.
 
@corey34 - look in the broken page, but look at the page source (right click and select view page source).
OK, here is what I get. I'm not seeing anything related to memory.

Code:
 <div class="box box-primary borderless">
<div class="box-header">
<div class="pull-left">
<h3 class="box-title">
<i class="glyphicon glyphicon-text-width"></i>My email templates </h3>
</div>
<div class="pull-right">
<a class="btn btn-primary btn-flat" data-toggle="modal" title="Upload template" href="#template-upload-modal"><i class="fa fa-cloud-upload"></i>Upload template</a> <a class="btn btn-primary btn-flat" title="Create new" href="/email/customer/templates/create"><i class="fa fa-plus-square"></i>Create new</a> <a class="btn btn-primary btn-flat" title="Refresh" href="/email/customer/templates/index"><i class="fa fa-refresh"></i>Refresh</a> </div>
<div class="clearfix"><!-- --></div>
</div>
<div class="box-body sortable-box">
<div class="box box-primary borderless panel-template-box" style="height: 270px;" data-id="131" data-url="/email/customer/templates/update-sort-order">
<div class="box-header"><h3 class="box-title">Newsletter Template</h3></div>
<div class="box-body">
<a title="Preview Newsletter Template" href="javascript:;" onclick="window.open('/email/customer/templates/lf276y7rrj8e0/preview','Preview Newsletter Template', 'scrollbars=1, resizable=1, height=600, width=600'); return false;">
<img class="img-rounded" src="Mac OS X            2��ATTR��;�;com.apple.quarantineq/0001;58aef058;Skype;082E83D2-D496-486E-AB0B-ED8BE3CECB1E
 
@corey34 - Try to remove the template with the uid "lf276y7rrj8e0" from the database. I am not sure what type of image is that but the image library clearly cannot handle it.
 
@corey34 - Try to remove the template with the uid "lf276y7rrj8e0" from the database. I am not sure what type of image is that but the image library clearly cannot handle it.
Is there a way to just disable the screenshot and just use the icon instead?

EDIT: We've found that the problem is with the screenshot image. If I direct-view the image listed in the 'screenshot' field in the db I get a very large screenshot of the template, which loads fine in my browser. Whatever processing is being done on that image isn't working on our end. If I NULL the 'screenshot' field everything works. Turning off screenshots would be a quick fix for us.
 
Last edited:
Back
Top