Skip to content

WordPress Unable to upload images

For some days now, in the admin area you have had these errors: Uncaught SyntaxError: expected expression, got ‘<‘. on files moxie.min.js, plupload.min.js, wp-plupload.min.js This does not allow us to upload images to media galleries, pages, articles… When entering in Media Gallery we hav…

Custom Iterator with a callback

For my project, I have a DoctrineIterator created by a repository. This iterator returns an array based on my internal request. I need another iterator returning an object based on this array a generic solution (I have more than one occurrence of this) The usage of the second iterator is out of my scope, so a…

Excel file can not be saved in PHP COM Application

we are having issues saving excel sheets in PHP. Minimalistic code: The call to save will throw a com_exception with message “Source: Microsoft Excel Description: Das Dokument wurde nicht gespeichert.” (German for “The document was not saved.”) When any worksheet of the workbook has be…

converting an object to an array in laravel

I’m trying to compare two arrays and use the difference of them to remove data from another array but as I use the resulting array to do a array_diff_key using an array_flip it returns; array_diff_key(): Expected parameter 1 to be an array, object given this is the code and I’ve tried converting t…