简体   繁体   English

升级到ubuntu 14.04后使用aigaion2开发PHP

[英]php with aigaion2 after upgrade to ubuntu 14.04

I have been using the web based bibliography management system aigaion2 for some years, accumulating thousands of references & linked pdf files. 多年来,我一直在使用基于Web的书目管理系统aigaion2 ,积累了成千上万的参考文献和链接的pdf文件。 However after upgrading from ubuntu 12.04 to 14.04 - with a change in the version of PHP - this fails to give me a log-in screen. 但是,从ubuntu 12.04升级到14.0414.04版本有所更改-这无法为我提供登录屏幕。 There are 2 warning messages; 有2条警告消息;

I am at a loss how to deal with this - does anybody have this working with a recent PHP version or might have any idea how to fix this. 我无所适从如何处理-是否有人在使用最新的PHP版本进行此操作,或者可能对如何解决此问题有任何想法。 From the aigaion website, it seems the package does not have any active maintainers any longer. 从aigaion网站上看,该软件包不再具有任何活动的维护者。

A PHP Error was encountered

Severity: Warning

Message: Creating default object from empty value

Filename: gettext/gettext.inc

Line Number: 195

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /data1/aigaion2/codeigniter/libraries/Exceptions.php:166)

Filename: helpers/url_helper.php

Line Number: 541

I'm trying to use Aigaion too. 我也在尝试使用Aigaion。 I got some errors. 我有一些错误。 You will find new release here : On source.forge : Source.Forge This release replaces old php "commands" to some new ones eregi to preg_replace split to explode, etc. 您可以在这里找到新版本:在source.forge上: Source.Forge此版本将旧的php“命令”替换为新的eregi,preg_replace,拆分等。

It seems that a 2.5 beta exists : Release 2.5 beta I'll check today. 似乎存在2.5测试版:我今天将检查发布的2.5测试版

For your problem, I did a small update in the module aigaion2\\aigaionengine\\libraries\\gettext\\gettext.inc ligne 193 对于您的问题,我在aigaion2 \\ aigaionengine \\ libraries \\ gettext \\ gettext.inc模块中做了一个小更新ligne 193

function _bind_textdomain_codeset($domain, $codeset) {
  global $text_domains;
  /*
   * MVT 150505 : Add !isset due to warning errors
   * It is a temporary features. It should be better
   * to migrate to a new PHP Release
   * Tested with Xamp / Php 5.6.8
   * I did this patch in order to use Aigaion with no errors
   * I don't have a large knowledge in PHP. Sorry
   */
  if (!isset($text_domains[$domain]))
        $text_domains[$domain] = new stdClass();
  $text_domains[$domain]->codeset = $codeset;

}

I found an answer here : Empty objects 我在这里找到答案: 空物体

This should be a little patch... 这应该是一个小补丁...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM