-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QImageControl sample is broken: assets/_core/php/examples/other_controls/image.php #92
Comments
What is your PHP version and platform? I don't know right off hand why gzuncompress would bomb on you. |
php -v it's an 64bit ubuntu, but I have the same error on my debian system too. And I don't think that is the gzuncompress that produces the problem. The problem is elsewhere, but ends in gzuncompress because input to it was already wrong. |
Do you have mcrypt installed? Does the qcryptography example work? |
mcrypt installed and the example works well |
It is working on the example site: http://examples.qcu.be/assets/_core/php/examples/other_controls/image.php |
…or file name length. * It fixes issues qcubed#92 and qcubed#152 * The example of QImageLabel is changed to use CacheFolder property. * The exception is throwed if the CacheFolder is not specified and the resulting file name length exceeds the 255 limit.
QImageControl sample is broken: assets/_core/php/examples/other_controls/image.php
gzuncompress() [function.gzuncompress]: data error
Error Type: E_WARNING
Source File: /home/olegabr/work/olegabr.qcubed.git/includes/qcubed/_core/base_controls/QImageControlBase.class.php Line: 193
Line 188: $strData = str_replace('_', '/', $strData);
Line 189:
Line 190: $strData = base64_decode($strData);
Line 191:
Line 192: if (function_exists('gzcompress'))
Line 193: $strData = gzuncompress($strData);
Line 194:
Line 195: $objLabel = unserialize($strData);
Line 196: $objLabel->RenderImage();
Line 197: }
Line 198:
Call Stack:
N0 (): QcodoHandleError()
N1 /home/olegabr/work/olegabr.qcubed.git/includes/qcubed/_core/base_controls/QImageControlBase.class.php(193): gzuncompress()
N2 /home/olegabr/work/olegabr.qcubed.git/assets/_core/php/image.php(9): QImageControlBase::Run()
It seems that not everyone is affected, @scottux can not reproduce it here: #29
I'll try to investigate it on my local machine.
The text was updated successfully, but these errors were encountered: