Sen*_*per 2 php wordpress ioncube
我在 WordPress 中设置了玉米文件,但“无法加载 ionCube PHP Loader - 它是用配置 2.2.0 构建的,而运行引擎是 API220100525,NTS Zend Optimizer 需要 Zend Engine API 版本 220060519。” 这个错误来了。
这是我的 Cron 文件代码。
#!/usr/bin/php -q
<?php
ob_clean();
date_default_timezone_set('America/Chicago');
include("../../../wp-config.php");
error_reporting(0);
/*
* snad mail befor 5 day expire post
*/
$properties = PL()->properties->get_properties(array(
'status'=> 'publish',
'before' => PL()->settings->renew_day - 5
));
foreach($properties as $property) {
$is_warning_sent = get_post_meta($property->ID,'expire_warning_sent',true);
if($is_warning_sent != 'true'){
PL()->properties->send_expire_warning($property->ID);
echo "Post Exipred warning - ".$property->ID." \n\n";
}
}
/*
* expire post
*/
$properties = PL()->properties->get_properties(array(
'status'=> 'publish',
'before' =>PL()->settings->renew_day
));
foreach($properties as $property) {
PL()->properties->set_post_expire($property->ID);
}
?>
Run Code Online (Sandbox Code Playgroud)
输出测试邮件是
Cron /home1/webpixel/public_html/millyclub/wp-content/plugins/property-listing/cron.php Inbox x Cron Daemon
上午 11:30(28 分钟前)
对我来说无法加载 ionCube PHP Loader - 它是用配置 2.2.0 构建的,而运行引擎是 API220100525,NTS Zend Optimizer 需要 Zend Engine API 版本 220060519。安装的 Zend Engine API 版本 220100525 是更新的。如需Zend Optimizer 的更高版本,请通过http://www.zend.com/联系 Zend Technologies 。
警告:PHP 启动:依赖系统的时区设置是不安全的。您需要使用 date.timezone 设置或 date_default_timezone_set() 函数。如果您使用了这些方法中的任何一种并且仍然收到此警告,则很可能是您拼错了时区标识符。我们现在选择了时区“UTC”,但请设置 date.timezone 以选择您的时区。在第0行的未知中致命错误:指令“allow_call_time_pass_reference”在第0行的未知PHP 中不再可用
单击此处回复或转发此对话中已删除的 45 条消息。查看消息或永久删除。已使用 15 GB 的 0.03 GB (0%) 管理条款 - 隐私上次帐户活动:4 分钟前 详细信息
ionCube Loader 必须与您的服务器正在运行的 PHP 版本完全相同。在您的情况下,API220100525,NTS应参考 PHP 5.4 Non-thread-safe,而您目前已经安装了 Loaders for 220060519,它应该对应于 PHP 5.3 。
您应该能够通过升级您的 ionCube Loader 来解决该问题:
为您的服务器下载最新的加载器(加载器概述)。
删除旧的 Loader 文件。这包括zend_extension = <ioncube_loader_path>从您的php.ini或xxionCube.iniPHP 配置文件夹中的自定义文件中删除条目,具体取决于您的安装。
将新的 Loader 解压到 PHP 可读目录。
添加或更新相关zend_extension条目以指向php.ini. 确保您匹配确切的 PHP 版本。
对于安装,您可能还想查看我几周前写的这个答案。
| 归档时间: |
|
| 查看次数: |
6797 次 |
| 最近记录: |