Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nicolas Juen

    (@rahe)

    Hi,

    There is no PHP on this file, check you have the right code on the file :
    https://github.com/Rahe/Simple-image-sizes/blob/master/templates/admin-js.html

    same problem since the activation of this plugin – so please have a second look if something changed maybe in the api (i’m using wp 3.9.1)

    Plugin Author Nicolas Juen

    (@rahe)

    Ok,

    Can you give me more details about the error, like all the backtrace ?

    Thank you

    Hello,
    I have exactly the same issue (Fatal error: Only variables can be passed by reference in /wp-content/plugins/simple-image-sizes/templates/admin-js.html on line 35) .
    It seems that this piece of code is doing it:

    <%   _.each( sis.crop_positions, function( label, name ) { %>
    					<option value="<%  - name %>"> <%  - label %> </option>
    				<%  }); %>

    It might be a problem is with tags <% %>. If server has enabled ASP tags, script could crash because it’s evaluated as PHP.
    Replacing them with <# #> using

    _.templateSettings = {
                        evaluate:    /<#([\s\S]+?)#>/g,
                        interpolate: /\{\{\{([\s\S]+?)\}\}\}/g,
                        escape:      /\{\{([^\}]+?)\}\}(?!\})/g
                    };

    might help but I can’t figure it out where to place this code. Any help will be very appreciated. And thanks for your work.

    Plugin Author Nicolas Juen

    (@rahe)

    Hi !
    I better understand the problem now, I will make an upadte soon for the 4.0 ??

    Rahe

    Plugin Author Nicolas Juen

    (@rahe)

    This is fixed on the 3.0.1 ! Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error’ is closed to new replies.