Nextgen public uploader problem
-
Hi, i Have this problem after upgrade nextgen gallery.
Fatal error: Call to undefined method UploaderNggAdmin::chmod() in //wp-content/plugins/nextgen-public-uploader/inc/class.npu_uploader.php on line 81
Please can anyone help me?
-
@diegos79 – The NextGEN Public Uploader plugin is not a Photocrati product. It would likely be best for you to contact its authors.
Thanks!
– Cais.
Hello i have this problem too after the update
may i ask you that help us how can we fix this issue?
we have postet at uploader support forum but the last activity at this forum is 1 month ago!@sajjad_fx – We are not the author of that plugin and unfortunately we do not offer support for third-party extensions at this time.
– Cais.
Hi Cais
Many of us have been through a year of updates to create nice websites with you new products. And I’m sure many, like me, have purchased the advanced pro versions.
I realize you, and all companies, should have a policy not to support third-party extensions. I’m asking for the NextGen community – can you suggest a a workaround that gets the uploader functioning and lets us use your new features.
thanks,
ChaneThis fix worked for me, I’ll continue to look for the right fix.
Line 81 of class.npu_uploader.php from folder: wp-content/plugins/nextgen-public-uploader/inc
Simply comment out these 4 lines of code, use // at the start of each line to comment out a line
//if ( ! $this->chmod( $dest_file ) ) { // self::show_error( __( 'Error, the file permissions could not set.', 'nextgen-public-uploader' ) ); // continue; //}Note: this has been tested on exactly 1 website, mine, and it works for me. Use at your own risk.
OK, here is the change I found that breaks Nextgen public uploader.
The blog post mentions:Changed: Removed unused code from ngglegacy module. Created wrappers for commonly-used functions
It just happened that Nextgen public uploader used on of the legacy functions.
From the file:
…\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\ngglegacy\admin\functions.phpLine: 1047 (or so) the legacy function chmod was removed in the latest version:
/** * Set correct file permissions (taken from wp core) * * @class nggAdmin * @param string $filename * @return bool $result */ function chmod($filename = '') { $stat = @ stat( dirname($filename) ); $perms = $stat['mode'] & 0000666; // Remove execute bits for files if ( @chmod($filename, $perms) ) return true; return false; }Hi Cais
Does photocratic have plans to add chmod() back, or should extensions to your gallery work around the change?
thanks
ChaneThe final workaround I’m using until photocratic or public uploader make a change.
In file: class.npu_uploader.php from folder: wp-content/plugins/nextgen-public-uploader/inc
A inserted the deleted chmod function from functions.php (see above for code and file location.
I inserted it at line 23.
Since I’ve never crafted a wordpress plugin – I’ll leave it to experts to decide if this is a good workaround or not.Chane
I see NG 2.0.74 just arrived and installed. chmod() still missing. And my work around above is still working π
Hello chane
Thanks for your sharing π
we are awaiting for the authors to solve our problem…
Best Regards.@chanecullens – Thanks for sharing your work-around and ideas, have you shared them with the NextGEN Public Uploader authors?
– Cais.
No I have not shared with the uploader team. Please do it for me if you are not re-adding chmod()
Hi all – we’ve just released a beta for NextGEN that has a fix for the NextGEN public uploader. If you’re up for giving it a try, we’d love to get confirmation the fix works for you.
http://www.nextgen-gallery.com/nextgen-gallery-latest-beta/
Thanks! (Erick)
The topic ‘Nextgen public uploader problem’ is closed to new replies.