You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GLPI 9.4.0] PHP Warning: Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP) in /usr/share/glpi/inc/search.class.php at line 6201
#5394
Closed
OscarBeiro opened this issue
Feb 15, 2019
· 0 comments
Warning shown 5 times when in Asistance -> Tickets with debug mode on.
PHP Warning: Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP) in /usr/share/glpi/inc/search.class.php at line 6201
Page(s) URL
/front/ticket.php
To reproduce
Steps to reproduce the behavior:
Enable debug mode
Go to Asistance -> Tickets
Expected behavior
Nothing should be shown
Logs
php-errors.log [2019-02-15 20:53:17] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /usr/share/glpi/inc/toolbox.class.php line 659 *** PHP Warning(2): Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP) Backtrace : inc/search.class.php:6201 inc/search.class.php:1428 Search::giveItem() inc/search.class.php:98 Search::constructData() inc/search.class.php:80 Search::showList() front/ticket.php:45 Search::show()
x5
Screenshots
If applicable, add screenshots to help explain your problem.
Your GLPI setup (you can find it in Setup > General menu, System tab)
[code]
GLPI 9.4.0 ( => /usr/share/glpi)
Installation mode: RPM
Server
Operating system: Linux xesclon 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64
PHP 7.3.0 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bcmath, bz2,
calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml,
mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, snmp, sockets, sqlite3, standard,
sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="100M" safe_mode="" session.save_handler="files"
upload_max_filesize="50M"
Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.0 ()
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3544.0 Safari/537.36
Server Software: MariaDB Server
Server Version: 10.2.8-MariaDB
Server SQL Mode:
Parameters:
Host info: 127.0.0.1 via TCP/IP
mysqli extension is installed
ctype extension is installed
fileinfo extension is installed
json extension is installed
mbstring extension is installed
iconv extension is installed
zlib extension is installed
curl extension is installed
gd extension is installed
simplexml extension is installed
xml extension is installed
ldap extension is installed
imap extension is installed
Zend OPcache extension is installed
APCu extension is installed
xmlrpc extension is installed
CAS extension is installed
Database version seems correct (10.2.8) - Perfect!Database version seems correct (10.2.8) - Perfect!
OK/var/log/glpi : OK
OK/etc/glpi : OK
OK/var/lib/glpi/files : OK
OK/var/lib/glpi/files/_dumps : OK
OK/var/lib/glpi/files/_sessions : OK
OK/var/lib/glpi/files/_cron : OK
OK/var/lib/glpi/files/_graphs : OK
OK/var/lib/glpi/files/_lock : OK
OK/var/lib/glpi/files/_plugins : OK
OK/var/lib/glpi/files/_tmp : OK
OK/var/lib/glpi/files/_cache : OK
OK/var/lib/glpi/files/_rss : OK
OK/var/lib/glpi/files/_uploads : OK
OK/var/lib/glpi/files/_pictures : OK
OKSELinux mode is Enforcing
OKSELinux boolean configuration for httpd_can_network_connect --> on
OKSELinux boolean configuration for httpd_can_network_connect_db --> on
OKSELinux boolean configuration for httpd_can_sendmail --> on
Libraries
htmLawed version 1.2.4 in (/usr/share/php/htmLawed)
phpmailer/phpmailer version 6.0.6 in (/usr/share/php/PHPMailer/PHPMailer6)
simplepie/simplepie version 1.5.2 in (/usr/share/php/php-simplepie)
tecnickcom/tcpdf version 6.2.26 in (/usr/share/php/tcpdf)
michelf/php-markdown in (/usr/share/php/Michelf)
true/punycode in (/usr/share/php/TrueBV)
iamcal/lib_autolink in (/usr/share/php/php-iamcal-lib-autolink)
sabre/vobject in (/usr/share/php/Sabre/VObject4)
zendframework/zend-cache in (/usr/share/php/Zend/Cache)
zendframework/zend-console in (/usr/share/php/Zend/Console)
zendframework/zend-i18n in (/usr/share/php/Zend/I18n)
zendframework/zend-serializer in (/usr/share/php/Zend/Serializer)
monolog/monolog in (/usr/share/php/Monolog)
sebastian/diff in (/usr/share/php/SebastianBergmann/Diff)
elvanto/litemoji in (/usr/share/php/LitEmoji)
symfony/console in (/usr/share/php/Symfony3/Component/Console)
leafo/scssphp in (/usr/share/php/Leafo/ScssPhp)
phpCas version 1.3.6 in (/usr/share/pear)
SQL replicas
Not active
Notifications
Way of sending emails: SMTP+SSL (email@anonymized.com@smtp.gmail.com)
Mails receivers
Name: 'email@anonymized.com' Active: Yes
Server: '{imap.gmail.com:993/imap/ssl}' Login: 'email@anonymized.com' Password: Yes
Plugins list
accounts Name: Accounts Version: 2.4.2 State: Not activated
actualtime Name: ActualTime Version: 1.0.0 State: Not activated
behaviors Name: Behaviours Version: 2.1.1 State: Not activated
costs Name: Costs Version: 1.0.0 State: Not activated
credit Name: Credit vouchers Version: 1.5.0 State: Not activated
archimap Name: Diagrams Version: 2.0.12 State: Not activated
domains Name: Domains Version: 2.0.2 State: Not activated
escalade Name: Escalation Version: 2.3.3 State: Not activated
formcreator Name: Forms Version: 2.6.5 State: Not activated
fusioninventory Name: FusionInventory Version: 9.3+1.3 State: Not activated
gdrive Name: GDrive Version: 1.1.0 State: Not activated
uninstall Name: Item's Lifecycle (uninstall) Version: 2.5.1 State: Not activated
mreporting Name: More Reporting Version: 1.5.3 State: Not activated
archires Name: Network Architectures Version: 2.6.0 State: Not activated
order Name: Orders management Version: 2.3.0 State: Not activated
pdf Name: Print to pdf Version: 1.4.0 State: Not activated
reports Name: Reports Version: 1.12.0 State: Not activated
tag Name: Tag Management Version: 2.3.0 State: Not installed
taskdrop Name: TaskDrop Version: 1.0.0 State: Not activated
telegrambot Name: TelegramBot Version: 2.0.0 State: Not activated
timezones Name: Timezones Version: 2.2.0 State: Not installed
tviewer Name: TViewer Version: 1.0.0 State: Not activated
webapplications Name: Web applications Version: 2.5.2 State: Not activated
[/code]
Additional context
While upgrading I've suffered this issue, and ran the two queries to fix it. #5359
I don't think this is related, but just in case
The text was updated successfully, but these errors were encountered:
trasher
added a commit
to trasher/glpi
that referenced
this issue
Feb 18, 2019
Describe the bug
Warning shown 5 times when in Asistance -> Tickets with debug mode on.
PHP Warning: Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP) in /usr/share/glpi/inc/search.class.php at line 6201
Page(s) URL
/front/ticket.php
To reproduce
Steps to reproduce the behavior:
Expected behavior
Nothing should be shown
Logs
php-errors.log
[2019-02-15 20:53:17] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /usr/share/glpi/inc/toolbox.class.php line 659 *** PHP Warning(2): Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP) Backtrace : inc/search.class.php:6201 inc/search.class.php:1428 Search::giveItem() inc/search.class.php:98 Search::constructData() inc/search.class.php:80 Search::showList() front/ticket.php:45 Search::show()
x5
Screenshots
If applicable, add screenshots to help explain your problem.
Your GLPI setup (you can find it in Setup > General menu, System tab)
Additional context
While upgrading I've suffered this issue, and ran the two queries to fix it.
#5359
I don't think this is related, but just in case
The text was updated successfully, but these errors were encountered: