Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have the exact same problem. Another plugin creates a PDF on the fly and now I get the error saying TCPDF ERROR: [Image] Unable to get image: /tmp/img_HloITZ on the front end iThemes shows a 404 error on the backend.

    Thread Starter wrentfrow

    (@wrentfrow)

    One other thing is interesting to note too. If I attach a larger image within the size limits I can see the status bar progress until it is done. Then it shows a “broken” image instead of a preview with the image.

    Point being – it is actually uploading, and GIF files work fine.

    Thread Starter wrentfrow

    (@wrentfrow)

    I also get this error in the chat when I hit the “send” button if the image fails to upload:

    Unknown error occurred: SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data

    Thread Starter wrentfrow

    (@wrentfrow)

    Debug finally threw this message – even though I have tested it with bunches of different working JPG files:

    /WiseChatEndpoints.php on line 571
    {“error”:”Unsupported type of file.”}

    Thread Starter wrentfrow

    (@wrentfrow)

    I turned on WP debugging and I get these two errors, always with the same time stamp (removed user and domain from logs)

    [21-Mar-2016 02:15:35 UTC] PHP Notice: getimagesize(): Read error! in /home/aUser/public_html/aDomain.com/wp-content/plugins/wise-chat/src/services/WiseChatImagesService.php on line 238
    [21-Mar-2016 02:15:35 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/aUser/public_html/aDomain.com/wp-content/plugins/wise-chat/src/services/WiseChatImagesService.php:238) in /home/aUser/public_html/aDomain.com/wp-content/plugins/wise-chat/src/endpoints/WiseChatEndpoints.php on line 571

    It appears the first one causes the second one – the line is WiseChatImagesService.php is this one:

    $fileInfo = file_exists($this->tempFileName) ? getimagesize($this->tempFileName) : null;

    Thread Starter wrentfrow

    (@wrentfrow)

    A couple of other things to note about this…

    If I select a jpg I can see it create a temp file under /tmp – then if try to hit the “send” button even with the broken image link I get this:

    Unknown error occurred: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    And after that happens there will be two files under /tmp from each attept, one the size of the image and one with zero size.

    Thread Starter wrentfrow

    (@wrentfrow)

    Also, I disabled all other plugins, changed the uploads directory (and all child directories) to 777 permissions, and I am using the base WP theme on a clean install – the problem still persists.

Viewing 7 replies - 1 through 7 (of 7 total)