dongpo0409 2012-04-03 22:41
浏览 17

无法安装PHP付款

I recently installed Sparks (package manager for CI) and now I'm trying to install a spark named: codeigniter-payments found at http://getsparks.org/packages/codeigniter-payments/versions/HEAD/show

Looking into the spark folders and some reading on the site, it seems this spark has a dependency on PHPPayments found at http://payments.calvinfroedge.com/index.html

When I try to run my code I run into this error message: Parse error: syntax error, unexpected T_STATIC in /home/a3374546/public_html/codeigniter/sparks/codeigniter-payments/0.1.4/src/php-payments/lib/payment_utility.php on line 21

This error points to these lines of code:

//Ignore classes that should be ignored
foreach(static::$autoload_ignore as $ignore)
{
    if(strpos($class, $ignore) !== false) return;
}

In addition, I had to change some file references such as:

dirname(__DIR__) 

to

dirname(dirname(__FILE__))

I want to ask is there a dependency for PHPPayments and by extension codeigniter-payments to have PHP 5.3.X before it will work? On a related note, is it possible to make changes to make it work with 5.2.X .

According to 000webhost.com (my hosting), the version they run is: PHP Version 5.2.17

Edit: Added System info:

Apache ver. 2.2.19 (Unix)

PHP version 5.2.* -> As mentioned above, php info states version 5.2.17

MySQL ver. 5.1

Codeigniter version: 2.1.0

Codeigniter Payments: 0.1.4

PHP payments: 67202cf *not sure if this is a version # but this was the # at the end of the zip file

  • 写回答

1条回答 默认 最新

  • duanchandun1860 2012-08-15 07:31
    关注

    It was indeed version incompatibility.

    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题