Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › Error on mass pay submit
- This topic has 8 replies, 5 voices, and was last updated 12 years, 4 months ago by admin.
-
AuthorPosts
-
May 22, 2011 at 12:57 pm #3454jazboMember
When I click on step two to create a mass pay file, I get:
Warning: fopen(paypal_mass_pay.txt) [function.fopen]: failed to open stream: Permission denied in /wp-content/plugins/wp-affiliate-platform/payouts_menu.php on line 381
can’t open file
Please can you advise on fixing this.
May 22, 2011 at 11:52 pm #32798amin007ParticipantPermission issue on your server. It’s not letting the plugin create the mass pay file.
Create the following two files inside the “wp-affiliate-platform” folder if they don’t exist and give these files “777” permission then try step 2 again.
paypal_mass_pay.txt
affiliate_payout_report.csvIf the above two files already exists then just change the permission to “777”.
June 21, 2011 at 1:27 pm #32799jazboMemberThank you! Everything working fine after the change.
June 27, 2012 at 5:57 am #32800cgparkhouseMemberI followed the details above and created the paypal_mass_pay.txt file uploaded it to both directories suggested and changed the permissions to 777.
The paypal_mass_pay.txt file in /wp-affiliate-platform/ does get written to when I click the ‘Create payment Report File’ button, however I then get a ‘can’t open file’ message.
What I was expecting to happen was either:
1. The PayPal API instigated to do the Mass Pay automatically
2. Get a file to download, so that I could do a manual upload to PayPal
I would prefer option 1.
What is meant to happen when I get the ‘can’t open file’ message?
June 27, 2012 at 10:47 pm #32801adminKeymasterWhat version of the plugin are you using? Does the “paypal_mass_pay.txt” file get created at all?
It is suppose to create the mass pay file which you can download to your computer (by right clicking on the file link). It will also create a CSV file with payout reports too. You take these files and make the payout using whatever means is easy for you (PayPal masspay, paypal send money, bank transfer, bank check etc.).
June 28, 2012 at 4:00 am #32802cgparkhouseMemberI’m using Version v5.1.9 of the WP Affiliate Platform plugin. paypal_mass_pay.txt did not get created automatically in the /wp-affiliate-platform/ directory. I had to create the blank file first and give it permission 777. Then that file got written to when I clicked on the ‘Create payment report file’ button. Then the following page at this url [http://better-life.me/wp-admin/admin.php?page=manage_payouts] displays:
WP Affiliate Platform – Manage Payouts
can’t open file
No link to the file shows.
I can download the file via ftp, but I want the finance guy to be able to use the WP Affiliate Program browser interface – because he is not very computer literate.
What is the name of the CSV file – maybe I need to create that manually too and give 777 permissions for the script to execute successfully?
PS Do you have plans to integrate with the PayPal mass pay API, to automate the process?
June 28, 2012 at 10:33 pm #32803adminKeymasterThe name of the CSV file is “affiliate_payout_report.csv”. After you created the mass pay file it should have written the report in it. I sent you an email to get access to the site so I can check it out. Yes, I have plans to have an automatic PayPal payment option there.
Update Turned out the “affiliate_payout_report.csv” file was missing which needed to be created on this server (the plugins tries to create it but this server was preventing that from happening).
July 5, 2012 at 7:58 pm #32804EricaMuellerMemberI’m having the same issue. The file is created and written to, but I get the Can’t Open File error.
July 6, 2012 at 5:52 am #32805adminKeymasterI am pretty sure its missing the other CSV file (affiliate_payout_report.csv) that is also writes to.
Please post a link to your site and verify for me that you created the following two files with “777” file permission:
http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/paypal_mass_pay.txt
and
http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/affiliate_payout_report.csvSome servers require that the file exists first before it can be written to (most servers allow you to just create that file on the fly but that doesn’t seem to be case in your situation).
-
AuthorPosts
- You must be logged in to reply to this topic.