Hi...
I've one problem, with my script.
If i test as:
`
$ php-7.0 -l zenpaypal.php
No syntax errors detected in zenpaypal.php
$ php-7.0 -l zenpaypal/class.ZenPayPal.php
No syntax errors detected in zenpaypal/class.ZenPayPal.php
`
But, when i upload my plugin, the zenphoto website is blank!
When i delete my plugin, the website run correctly.
One idea?
My first lines code into zenpaypal.php:
`
<?php
/**
* zenPaypal -- PayPal ordering support
*
* Provides a PayPal ordering form for image print ordering.
*
* Price lists can also be passed as a parameter to the zenPaypal() function. See also
* zenPaypalPricelistFromString() for parsing a string into the pricelist array. This could be used,
* for instance, by storing a pricelist string in the 'customdata' field of your images and then parsing and
* passing it in the zenPaypal() call. This would give you individual pricing by image.
*
* @author Ebrahim Ezzy (Nimbuz) adapted as a plugin by Stephen Billard (sbillard)
* modified by Stephane HUC (hucste) <devs@stephane-huc.net>
*
* @package plugins - divers
*
*/
define('ZPP', 'zenpaypal');
// include class ZPP
include(__DIR__ .'/'.ZPP.'/class.ZenPayPal.php');
//include_once(__DIR__ .'/'.ZPP.'/PayPal-PHP-SDK/autoload.php');
// here declarate new zenpaypal !
$zenpaypal = new ZenPayPal();
// needed variables for ZenPhoto
$option_interface = 'zenPaypalOptions';
$plugin_author = gettext('Ebrahim Ezzy (Nimbuz), adapted as a plugin by Stephen Billard (sbillard), modified by Stephane HUC (hucste).');
$plugin_description = gettext('PayPal Integration');
//$plugin_disable = (version_compare(PHP_VERSION, '5.0.0') != 1) ? gettext('PHP version 5 or greater is required.') : false;
$plugin_is_filter = 5|ADMIN_PLUGIN|THEME_PLUGIN;
$plugin_URL = 'https://framagit.org/hucste/ZenPayPal';
$plugin_version = $zenpaypal->getPluginVersion();
zp_register_filter('admin_head','ZenPayPal');
zp_register_filter('theme_head','printCSS');
zp_register_filter('theme_head','printJS');
(...)
`