• Resolved jacdesigner

    (@jacdesigner)


    Hello,

    After installing this plugin to a site, I see errors such as:

    file_put_contents(……/plugins/wp-payeezy-pay/WSP-GYNIC-bmS9QQCKiw.php): failed to open stream: Permission denied in ……/wp-content/plugins/wp-payeezy-pay/wp-payeezy-pay.php on line 680

    It also reports an error of the line of code on 993 for file_put_contents.

    Could this be an issue with the version of PHP on their server? Or do you know what permissions settings I need to look at?

    I was able to see the Settings form and enter the Payeezy account data (it is in live mode since it is being used already), but it did not allow the form to be submitted and gave me a page that said there was a “technical difficulty” (on the WordPress site, never proceeding to Payeezy). I assume this is related to the same failed permissions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rick Rottman

    (@rickrottman)

    When you save the settings, one of the things that happens is that a php file containing the transaction key is created and placed in the plugin’s folder. This file will be named PAYMENT_PAGE_ID.php.

    For example, on my site this file is named HCO-RICHA-573.php. The Payment Page ID for my demo account is HCO-RICHA-573.

    If the permissions are such as that the plugin cannot create a file in the plugin’s folder, the easiest way to fix this is to manually create this file and upload it to the plugin’s folder. You’ll still get an error each and every time you save the settings, but everything will work. Contents of this file is:

    <?php $transaction_key = "N1rxfAvM307BUkTeFBGW"?>

    It contains only one line of code. You want to copy this line and then paste it into a blank file. Replace the transaction key between the two quote marks with your payment page’s transaction key. Name the file the payment page ID of your payment page and give it a php extension.

    You would normally want to keep your transaction key super-secret. I’m posting it here because it’s associated with a demo account.

    Thread Starter jacdesigner

    (@jacdesigner)

    Wow Richard, Thank you so much for you super quick help! I think it worked and the payment page is now displaying after the form submit.

    Plugin Author Rick Rottman

    (@rickrottman)

    Good, glad to hear it! I’ll close this thread as closed then.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error with file_put_contents – could it be PHP?’ is closed to new replies.