Ticket UUID: b92280c4ce3fd19f53c857ce0c5db249dc3092fe
Title: erreur dans la page wiki lors de l'insertion d'un lien internet. idem apres mise à jour
Status: Fixed Type: Code_Defect
Severity: Critical Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2014-04-16 18:52:09
Version Found In: 0.60rc3
Target version:
User Comments:
barbak added on 2014-04-13 19:05:38:
Exception of type ErrorException happened !

0 - preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

In: /include/libs/garbage2xhtml/lib.garbage2xhtml.php:563

http://192.168.1.16/jvd/www/admin/wiki/?Joue-Aux-verdoux

#0 [internal function]: Garradin\exception_error_handler(8192, 'preg_replace():...', '/volume1/web/jv...', 563, Array)
#1 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(563): preg_replace('~&#x0*([0-9a-f]...', 'chr(hexdec("\1"...', '-')
#2 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(576): garbage2xhtml->decodeObfuscated('-')
#3 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(546): garbage2xhtml->protectAttribute('href', '-')
#4 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(775): garbage2xhtml->getTagAttributes('a href="-', 'a')
#5 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(245): garbage2xhtml->buildTree()
#6 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(267): garbage2xhtml->parse('Bienvenue dans ...')
#7 /volume1/web/jvd/include/lib.utils.php(383): garbage2xhtml->process('Bienvenue dans ...')
#8 /volume1/web/jvd/include/lib.template.php(182): Garradin\utils::htmlGarbage2xhtml('Bienvenue dans ...')
#9 [internal function]: Garradin\tpl_format_wiki('Bienvenue dans ...')
#10 /volume1/web/jvd/include/libs/template_lite/class.template.php(833): call_user_func_array('Garradin\tpl_fo...', Array)
#11 /volume1/web/jvd/cache/compiled/c_4939f4a2aefcc5b30587344bb8a178a7.php(93): Template_Lite->_run_modifier('Bienvenue dans ...', 'format_wiki', 'plugin', 1)
#12 /volume1/web/jvd/include/libs/template_lite/class.template.php(723): include('/volume1/web/jv...')
#13 /volume1/web/jvd/include/libs/template_lite/class.template.php(594): Template_Lite->_fetch_compile('admin/wiki/page...')
#14 /volume1/web/jvd/include/libs/template_lite/class.template.php(554): Template_Lite->fetch('admin/wiki/page...', NULL, true)
#15 /volume1/web/jvd/www/admin/wiki/index.php(32): Template_Lite->display('admin/wiki/page...')
#16 {main}
-------------
Garradin version: 0.6.0-rc2
Garradin manifest: 
PHP version: 5.5.9
USER: http
HOME: /var/services/web
FCGI_ROLE: RESPONDER
REDIRECT_MOD_X_SENDFILE_ENABLED: yes
REDIRECT_HANDLER: php5-fastcgi
REDIRECT_STATUS: 200
HTTP_HOST: 192.168.1.16
HTTP_CONNECTION: keep-alive
HTTP_CACHE_CONTROL: max-age=0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 OPR/20.0.1387.91
HTTP_REFERER: http://192.168.1.16/jvd/www/admin/wiki/editer.php?id=1
HTTP_ACCEPT_ENCODING: gzip,deflate,lzma,sdch
HTTP_ACCEPT_LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_COOKIE: __utma=56494571.731320775.1388943289.1388943289.1388943289.1; __utmz=56494571.1388943289.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); stay_login=1; mailviewsplitterv=226; composesplitterv=248; prefviewsplitter=266; folderviewsplitter=266; identviewsplitter=266; language=fr; id=onjhPlgB6vqIMD3L1N00761; PHPSESSID=6u5tvb4k7f32f1lk9e5umiss75
PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
SERVER_SIGNATURE: 
SERVER_SOFTWARE: Apache
SERVER_NAME: 192.168.1.16
SERVER_ADDR: 192.168.1.16
SERVER_PORT: 80
REMOTE_ADDR: 192.168.1.21
DOCUMENT_ROOT: /var/services/web
SERVER_ADMIN: admin
SCRIPT_FILENAME: /var/services/web/jvd/www/admin/wiki/index.php
REMOTE_PORT: 56547
REDIRECT_QUERY_STRING: Joue-Aux-verdoux
REDIRECT_URL: /jvd/www/admin/wiki/index.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: Joue-Aux-verdoux
REQUEST_URI: /jvd/www/admin/wiki/?Joue-Aux-verdoux
SCRIPT_NAME: /jvd/www/admin/wiki/index.php
ORIG_SCRIPT_FILENAME: /php-fpm-handler
ORIG_PATH_INFO: /jvd/www/admin/wiki/index.php
ORIG_PATH_TRANSLATED: /var/services/web/jvd/www/admin/wiki/index.php
ORIG_SCRIPT_NAME: /php-fpm-handler.fcgi
PHP_SELF: /jvd/www/admin/wiki/index.php
REQUEST_TIME_FLOAT: 1397415873.3645
REQUEST_TIME: 1397415873

bohwaz added on 2014-04-13 23:19:06:
Corrigé dans la lib garbage2xhtml.

barbak added on 2014-04-15 19:32:48:
Exception of type ErrorException happened !

0 - preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

In: /include/libs/garbage2xhtml/lib.garbage2xhtml.php:563

http://192.168.1.16/jvd/www/admin/wiki/?Joue-Aux-verdoux

#0 [internal function]: Garradin\exception_error_handler(8192, 'preg_replace():...', '/volume1/web/jv...', 563, Array)
#1 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(563): preg_replace('~&#x0*([0-9a-f]...', 'chr(hexdec("\1"...', '-')
#2 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(576): garbage2xhtml->decodeObfuscated('-')
#3 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(546): garbage2xhtml->protectAttribute('href', '-')
#4 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(775): garbage2xhtml->getTagAttributes('a href="-', 'a')
#5 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(245): garbage2xhtml->buildTree()
#6 /volume1/web/jvd/include/libs/garbage2xhtml/lib.garbage2xhtml.php(267): garbage2xhtml->parse('<a href="->www....')
#7 /volume1/web/jvd/include/lib.utils.php(398): garbage2xhtml->process('<a href="->www....')
#8 /volume1/web/jvd/include/lib.template.php(193): Garradin\utils::htmlGarbage2xhtml('<a href="->www....')
#9 [internal function]: Garradin\tpl_format_wiki('[->www.facebook...')
#10 /volume1/web/jvd/include/libs/template_lite/class.template.php(833): call_user_func_array('Garradin\tpl_fo...', Array)
#11 /volume1/web/jvd/cache/compiled/c_4939f4a2aefcc5b30587344bb8a178a7.php(93): Template_Lite->_run_modifier('[->www.facebook...', 'format_wiki', 'plugin', 1)
#12 /volume1/web/jvd/include/libs/template_lite/class.template.php(723): include('/volume1/web/jv...')
#13 /volume1/web/jvd/include/libs/template_lite/class.template.php(594): Template_Lite->_fetch_compile('admin/wiki/page...')
#14 /volume1/web/jvd/include/libs/template_lite/class.template.php(554): Template_Lite->fetch('admin/wiki/page...', NULL, true)
#15 /volume1/web/jvd/www/admin/wiki/index.php(32): Template_Lite->display('admin/wiki/page...')
#16 {main}
-------------
Garradin version: 0.6.0-rc3
Garradin manifest: 
PHP version: 5.5.9
USER: http
HOME: /var/services/web
FCGI_ROLE: RESPONDER
REDIRECT_MOD_X_SENDFILE_ENABLED: yes
REDIRECT_HANDLER: php5-fastcgi
REDIRECT_STATUS: 200
HTTP_HOST: 192.168.1.16
HTTP_CONNECTION: keep-alive
HTTP_CACHE_CONTROL: max-age=0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 OPR/20.0.1387.91
HTTP_REFERER: http://192.168.1.16/jvd/www/admin/wiki/editer.php?id=1
HTTP_ACCEPT_ENCODING: gzip,deflate,lzma,sdch
HTTP_ACCEPT_LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_COOKIE: __utma=56494571.731320775.1388943289.1388943289.1388943289.1; __utmz=56494571.1388943289.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); stay_login=1; mailviewsplitterv=226; composesplitterv=248; prefviewsplitter=266; folderviewsplitter=266; identviewsplitter=266; language=fr; PHPSESSID=up2nls9npbfccjr834gedpc985; id=onjhPlgB6vqIMD3L1N00761
PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
SERVER_SIGNATURE: 
SERVER_SOFTWARE: Apache
SERVER_NAME: 192.168.1.16
SERVER_ADDR: 192.168.1.16
SERVER_PORT: 80
REMOTE_ADDR: 192.168.1.21
DOCUMENT_ROOT: /var/services/web
SERVER_ADMIN: admin
SCRIPT_FILENAME: /var/services/web/jvd/www/admin/wiki/index.php
REMOTE_PORT: 65397
REDIRECT_QUERY_STRING: Joue-Aux-verdoux
REDIRECT_URL: /jvd/www/admin/wiki/index.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: Joue-Aux-verdoux
REQUEST_URI: /jvd/www/admin/wiki/?Joue-Aux-verdoux
SCRIPT_NAME: /jvd/www/admin/wiki/index.php
ORIG_SCRIPT_FILENAME: /php-fpm-handler
ORIG_PATH_INFO: /jvd/www/admin/wiki/index.php
ORIG_PATH_TRANSLATED: /var/services/web/jvd/www/admin/wiki/index.php
ORIG_SCRIPT_NAME: /php-fpm-handler.fcgi
PHP_SELF: /jvd/www/admin/wiki/index.php
REQUEST_TIME_FLOAT: 1397590284.3874
REQUEST_TIME: 1397590284