error while upgrading php 5.6.3 to 7.1.1 on xampp - apache

I have trouble while upgrading php 5.6.3 to php 7.1.1 on xampp.
Browser showed error log while I try open http://localhost/phpmyadmin/:
Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in C:\xampp\phpMyAdmin\libraries\php-gettext\gettext.inc:177 Stack trace: #0 C:\xampp\phpMyAdmin\libraries\php-gettext\gettext.inc(279): _encode('Error') #1 C:\xampp\phpMyAdmin\libraries\php-gettext\gettext.inc(286): _gettext('Error') #2 C:\xampp\phpMyAdmin\libraries\core.lib.php(235): __('Error') #3 C:\xampp\phpMyAdmin\libraries\core.lib.php(308): PMA_fatalError('The [a#./url.ph...') #4 C:\xampp\phpMyAdmin\libraries\common.inc.php(90): PMA_warnMissingExtension('mbstring', true) #5 C:\xampp\phpMyAdmin\index.php(12): require_once('C:\xampp\phpMyA...') #6 {main} thrown in C:\xampp\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177

Related

Web driver not available for chrome version 101.0.4951.64?

When I run my selenium script I got this error
unknown error: net::ERR_CONNECTION_TIMED_OUT
(Session info: headless chrome=101.0.4951.64)
Stacktrace:
#0 0x55da9e091533 <unknown>
#1 0x55da9ddf01e8 <unknown>
#2 0x55da9ddea065 <unknown>
#3 0x55da9dddb8b6 <unknown>
#4 0x55da9dddc7cb <unknown>
#5 0x55da9dddbb82 <unknown>

Magento 1.9 Live Website Admin Not Working

I am not able to log in to my Magento website admin. I am getting the following error.
Below is the error:
There has been an error processing your request
Invalid method Mage_Admin_Model_User::login(Array
(
[0] => admin
[1] => testT
)
)
Trace:
#0 /home/mysite/public_html/app/code/core/Mage/Admin/Model/Session.php(118): Varien_Object->__call('login', Array)
#1 /home/mysite/public_html/app/code/core/Mage/Admin/Model/Session.php(118): Mage_Admin_Model_User->login('admin', 'testT')
#2 /home/mysite/public_html/app/code/core/Mage/Admin/Model/Observer.php(69): Mage_Admin_Model_Session->login('admin', 'testT', Object(Mage_Core_Controller_Request_Http))
#3 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer))
#4 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Admin_Model_Observer), 'actionPreDispat...', Object(Varien_Event_Observer))
#5 /home/mysite/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#6 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(527): Mage::dispatchEvent('controller_acti...', Array)
#7 /home/mysite/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#8 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#9 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#10 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/mysite/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /home/mysite/public_html/index.php(86): Mage::run('', 'store')
#14 {main}
I tried removing var/session and var/cache folders. Also, cleared cookies and sessions from the browser. Magento version is 1.9. Still getting the same error. Does anyone know how to fix it? Any help will be appreciated.
Please try to follow the below instructions to fix this:
Delete the generated/code directory rm -rf generated/code
Then run
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
chmo -R 0777 var/ pub/ generated/

Running Chromium with yocto

I have a imx6 SOM and i am using yocto (krogoth). I want to install the chromium browser and so I added the following to the conf and the chromium is now build.
CORE_IMAGE_EXTRA_INSTALL += "chromium libexif weston"
PNBLACKLIST[chromium] = ""
When i want to start the browser i always got the following messages:
var-som-mx6 /mnt/user# ./chrome.sh www.google.com
[1157:1157:0805/150113:ERROR:display.cc(148)] WaylandDisplay failed to initialize hardware
[1157:1157:0805/150113:FATAL:ozone_platform_wayland.cc(115)] failed to initialize display hardware
#0 0x0000551dd27a <unknown>
#1 0x0000551ec9fe <unknown>
#2 0x0000558339fa <unknown>
#3 0x000055918254 <unknown>
#4 0x000055918ba4 <unknown>
#5 0x000055918c82 <unknown>
#6 0x0000578341ac <unknown>
#7 0x0000551ae960 <unknown>
#8 0x0000551ae1ba <unknown>
#9 0x000054edd5c0 ChromeMain
#10 0x0000764e1cf8 __libc_start_main
Received signal 6
#0 0x0000551dd27a <unknown>
#1 0x0000551dd548 <unknown>
#2 0x0000764f7b40 <unknown>
#3 0x0000764f6910 gsignal
[end of stack trace]
./chrome.sh: line 15: 1129 Segmentation fault /usr/bin/chromium/chrome ${CHROME_EXTRA_ARGS} $#
The script chrome.sh:
#!/bin/sh
export HOME=/tmp/
export CHROME_DEVEL_SANDBOX=/usr/sbin/chrome-devel-sandbox
export LD_LIBRARY_PATH=/usr/lib/chromium
export GOOGLE_API_KEY="no"
export GOOGLE_DEFAULT_CLIENT_ID="no"
export GOOGLE_DEFAULT_CLIENT_SECRET="no"
CHROME_EXTRA_ARGS=" --use-gl=egl --gpu-no-context-lost --start-fullscreen --kiosk --no-first-run --ignore-gpu-blacklist --user-data-dir=/tmp/.chromium/"
CHROME_EXTRA_ARGS="${CHROME_EXTRA_ARGS} --disable-pinch --disable-touch-adjustment --enable-touch-drag-drop --touch-events=enabled"
/usr/bin/chromium/chrome ${CHROME_EXTRA_ARGS} $#
Dows anyone gives me an advise what is wrong or what i can try?! Thanks.
BR Harald
Note that krogoth is very old, so I do not think anyone can give you specific advice anymore about what is wrong. You should try a recent version of Yocto, or even the master branch.

install laravel 5 error composer.phar on line 23

create laravel 5 project:
composer create-project laravel/laravel wifi dev-develop --prefer-dist
Error:
PHP Fatal error: Uncaught exception 'PharException' with message 'phar "/usr/local/bin/composer.phar" has a broken signature' in /usr/local/bin/composer.phar:23
Stack trace:
0 /usr/local/bin/composer.phar(23): Phar::mapPhar('composer.phar')
1 {main}
thrown in /usr/local/bin/composer.phar on line 23
This is a composer problem not a Laravel one.
Your composer.phar may be corrupted try to re-download the composer using the instructions from here
This is a composer problem, try:
Sudo su
composer self-update

Apache segfault errors for child processes

Apache on production server is failing periodically. Apache logs show segfault errors for child processes.
Core dump backtrace shows next:
#0 0x00007fc2462d6617 in ?? ()
#1 0x00007fc24d9458b8 in _hooks ()
#2 0x00007fc2498c798f in ?? () from /usr/lib/apache2/modules/libphp5.so
#3 0x00007fc2498ce342 in ?? () from /usr/lib/apache2/modules/libphp5.so
#4 0x00007fc2498ce5c8 in zend_hash_graceful_reverse_destroy ()
from /usr/lib/apache2/modules/libphp5.so
#5 0x00007fc2498c26b5 in ?? () from /usr/lib/apache2/modules/libphp5.so
#6 0x00007fc24986d4cd in php_module_shutdown ()
from /usr/lib/apache2/modules/libphp5.so
#7 0x00007fc24986d579 in php_module_shutdown_wrapper ()
from /usr/lib/apache2/modules/libphp5.so
#8 0x00007fc24994de51 in ?? () from /usr/lib/apache2/modules/libphp5.so
#9 0x00007fc24ce467d7 in ?? () from /usr/lib/libapr-1.so.0
#10 0x00007fc24ce45684 in apr_pool_destroy () from /usr/lib/libapr-1.so.0
#11 0x00007fc24d72b4ce in clean_child_exit (code=0)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:196
#12 0x00007fc24d72b8f9 in accept_mutex_on (child_num_arg=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:212
#13 child_main (child_num_arg=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:568
#14 0x00007fc24d72bb5a in make_child (s=0x7fc24f517938, slot=3)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:758
#15 0x00007fc24d72c7e4 in perform_idle_server_maintenance (
---Type <return> to continue, or q <return> to quit---
_pconf=<value optimized out>, plog=<value optimized out>,
s=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:893
#16 ap_mpm_run (_pconf=<value optimized out>, plog=<value optimized out>,
s=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:1097
#17 0x00007fc24d701350 in main (argc=3, argv=0x7fff9a1da0d8)
at /build/buildd/apache2-2.2.14/server/main.c:742
I have updated Apache from 2.2.14 to 2.2.20 and PHP from 5.3.2 to 5.3.6 but this error still exists.
What could be causing this problem?
UPDATE
Here php -v output:
root#host:~# php -v
PHP 5.3.6-13ubuntu3.1 with Suhosin-Patch (cli) (built: Aug 29 2011 23:39:16)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
php -m:
root#host:~# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
eAccelerator
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
libxml
mbstring
mcrypt
memcache
mhash
ming
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
ps
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
eAccelerator
Also I tried to disable eAccelerator but nothing was changed.