Thread:Extension talk:Push/File Push Hanging/reply (3)

Thanks for the feedback! Since we're running an older version of php that doesn't include the CurlFile class, I ran a local instance of mediawiki to run this test and ran into a different error, which I can now replicate in all cases. Push hung because of the CurlHttpRequest declared in on line 289 in ApiPushImages.php. Once I fixed that with the call above I started running into a different permissions problem.

After trying to push a file the page displays the "Push failed: File push failed: Target wiki refused the pushed page." error. The same permissions settings are used on both wikis with a universal LocalSettings file. I've made sure I added all the relevant permissions settings, but haven't gotten it to work. $wgEnableUploads = true; $wgAllowCopyUploads = true; //same user info as target wiki $egPushLoginUser = 'USER'; $egPushLoginPass = 'PASSWORD'; I also added these permissions to the LocalSettings to see if it had an effect, but no change.

$wgGroupPermissions['*']['push'] = true; $wgGroupPermissions['*']['filepush'] = true; $wgGroupPermissions['*']['bulkpush'] = true;

Am I missing anything? Pushing the content of a page works fine, but when you push a file it throws the error. Please Help! I've been struggling with this issue for a while.

Settings: PHP 5.4.22, MediaWiki 1.20.8, curl 7.15.5