Forum

Thread tagged as: Error, Shop

Payment Complete / PHP Error

I'm using the Stripe gateway. The test card is charged correctly and the user is redirected to the complete page. Perch Shop correctly recognizes the transaction is successfully completed.

Inspecting the database, order items are added to the "perch2_shop_order_items" table, though interestingly there is no "perch2_shop_orders" table, though being not totally up to speed on the data model it may not matter.

Here are the problems

  • No order is visible in the Perch Shop Manage Orders page in /perch admin
  • No order emails are kicking off

Errors are being generated from the transaction complete page.

PHP error_log

[23-Mar-2018 07:02:28 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:28 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:33 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:33 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:37 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:37 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:37 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:37 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:44 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:44 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:50 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:02:50 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:12 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:12 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:34 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:34 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:47 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:47 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:55 America/Denver] PHP Warning:  include(/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php): failed to open stream: No such file or directory in /home/foreverl/public_html/perch/core/inc/apps.php on line 19
[23-Mar-2018 07:03:55 America/Denver] PHP Warning:  include(): Failed opening '/home/foreverl/public_html/perch/addons/apps/perch_forms/runtime.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/foreverl/public_html/perch/core/inc/apps.php on line 19

Diagnostics summary

Perch Runway: 3.0.14, PHP: 7.0.28, MySQL: 5.6.23, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.14), assets (3.0.14), categories (3.0.14), perch_shop_orders (1.2.3), perch_shop_products (1.2.3), perch_shop (1.2.3), perch_comments (1.2.1), perch_members (1.6.2)
App runtimes: <?php $apps_list = array( 'perch_comments', 'perch_forms', 'perch_members', 'perch_shop' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/foreverl/public_html/perch
PERCH_CORE: /home/foreverl/public_html/perch/core
PERCH_RESFILEPATH: /home/foreverl/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 768M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/foreverl/public_html
HTTP_HOST: foreverlds.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

complete.php page snippet

<?php
// Has the order been succcessfully placed?
if (perch_shop_order_successful()) {

    // Yes! Show a success message
    //perch_content('Order successful');

    // empty the cart
     perch_shop_empty_cart();

?>
  <p>success</p>
<?php
    // Redisplay the details of the order
    perch_shop_order_items(
        perch_shop_successful_order_id()
    );
}else{
?>
  <p>no success?</p>
<?php
    // Payment problem! Show instructions to the customer
    //perch_content('Payment not successful');
}
?>
Jared Buttars

Jared Buttars 1 points

  • 3 years ago

Hi Jared - do you have the Forms app installed?

Thanks for catching that, Jonathan. It wasn't installed so I installed it and tried again but have the same problems.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Now that you've cleaned that up, what's in the error log?

There are no longer errors in the PHP error log after a payment checkout is completed.

Unfortunately, I still don't see an Order in the /perch admin.