Fatal error: Call to a member function read() on a non-object in /FAQ/admin/editor/plugins/ImageManager/Classes/ImageManager.php on line 106
This happens when I click the image-icon ("insert/modify Image") in a edit view.
Any suggestions?
Thanks.
1.6.11 php error when attaching images
Moderator: Thorsten
Hi,
I cannot reproduce that. What PHP version do you use?
bye
Thorsten
I cannot reproduce that. What PHP version do you use?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
can you check, if this example is working on your server?
http://de3.php.net/manual/de/class.dir.php
Thanks!
bye
Thorsten
can you check, if this example is working on your server?
http://de3.php.net/manual/de/class.dir.php
Thanks!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
With the included path /etc/php5, my open_basedir restriction comes into effect.
when setting
$d = dir(".");
I get
when setting $d to my absolute path to the FAQ:
when setting
$d = dir(".");
I get
Handle: Resource id #2 Path: . . .. admin docs font lang template add.php attachments data artikel.php ask.php contact.php images inc help.php index.php mailsend2friend.php main.php open.php pdf.php save.php pdf test.php savecomment.php savequestion.php savevoting.php search.php send2friend.php sendmail.php show.php writecomment.php xml.php xml xmlrpc.php template.orig feed install _.htaccess _httpd.ini sitemap.php _lighttpd.conf phpmyfaq.spec
when setting $d to my absolute path to the FAQ:
Doesn't look like a PHP problem to me.Handle: Resource id #2 Path: /var/www/dvdboard/FAQ . .. admin docs font lang template add.php attachments data artikel.php ask.php contact.php images inc help.php index.php mailsend2friend.php main.php open.php pdf.php save.php pdf test.php savecomment.php savequestion.php savevoting.php search.php send2friend.php sendmail.php show.php writecomment.php xml.php xml xmlrpc.php template.orig feed install _.htaccess _httpd.ini sitemap.php _lighttpd.conf phpmyfaq.spec
Hi,
bye
Thorsten
that's the problem: your open_basedir directive is not correct because it doesn't contain the phpMyFAQ path. It's not a bug in phpMyFAQ.LamBras wrote:With the included path /etc/php5, my open_basedir restriction comes into effect.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
When open_basedir restricts access to /etc/php5 in the previous example, I get a specific open_basedir error message telling me /etc/php5 is inacessible. Such an error message is lacking in the faq case.
Also my basedir settings look ok to me:
<Directory /var/www/dvdboard>
php_admin_value open_basedir /var/www/dvdboard:/tmp:/var/lib/php5
php_admin_value disable_functions system,popen,phpinfo,passthru,proc_open,allow_url_fopen,shell,shellexec,shell_exec
</Directory>
The FAQ is located in /var/www/dvdboard/FAQ/
Any more suggestions or hints?
Also my basedir settings look ok to me:
<Directory /var/www/dvdboard>
php_admin_value open_basedir /var/www/dvdboard:/tmp:/var/lib/php5
php_admin_value disable_functions system,popen,phpinfo,passthru,proc_open,allow_url_fopen,shell,shellexec,shell_exec
</Directory>
The FAQ is located in /var/www/dvdboard/FAQ/
Any more suggestions or hints?
Hi,
we're hiding the open_basedir error message with a @ right before the dirt() function and so you'll get in the next line a fatal error.
bye
Thorsten
we're hiding the open_basedir error message with a @ right before the dirt() function and so you'll get in the next line a fatal error.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist