Jump to content

Cannot use plugins with PHP Thumb


keevitaja

Recommended Posts

Hello,

 

i keep getting this error with PHP Thumb watermark plugin. Can anyone help? maybe i'm doing it wrong!

 

php thumb: http://phpthumb.gxdlabs.com/download.php

watermark plugin: http://phpthumb.gxdlabs.com/forums/topic/watermark-plugin

 

my code:

 

<?php
require_once 'ThumbLib.inc.php';

$thumb = PhpThumbFactory::create('image.jpg');
$thumb->adaptiveResize(400, 400);
$thumb->createWatermark('watermark.png', 'cc', 10);
$thumb->show();
?>

 

the error i get:

Warning: Parameter 4 to GdWatermarkLib::createWatermark() expected to be a reference, value given in C:\xampp\htdocs\new\includes\phpthumb\ThumbBase.inc.php on line 212

 

Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot show image, headers have already been sent' in C:\xampp\htdocs\new\includes\phpthumb\GdThumb.inc.php:569 Stack trace: #0 C:\xampp\htdocs\new\includes\phpthumb\proov.php(7): GdThumb->show() #1 {main} thrown in C:\xampp\htdocs\new\includes\phpthumb\GdThumb.inc.php on line 569

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.