PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in public_html/lib/Varien/Simplexml/Config.php:510 - magento

I'm getting this error. Can you please help me understand why it is coming and what does it mean. I did not change any code. It is running on PHP 7.1 and Operating system is Linux.
PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20160303
PHP compiled with module API=20170718
These options need to match in Unknown on line 0
PHP Fatal error: Uncaught Error: Call to undefined function
simplexml_load_string() in public_html/lib/Varien/Simplexml/Config.php:510
Stack trace:
#0 /home3/ramesqj3/public_html/lib/Varien/Simplexml/Config.php(498):
Varien_Simplexml_Config->loadString('<?xml version="...',
'Mage_Core_Model...')
#1/home3/ramesqj3/public_html/app/code/core/Mage/Core/Model/Config.php(277):
Varien_Simplexml_Config->loadFile('/home3/ramesqj3...')
#2 /home3/ramesqj3/public_html/app/code/core/Mage/Core/Model/App.php(391):
Mage_Core_Model_Config->loadBase()
#3 /home3/ramesqj3/public_html/app/code/core/Mage/Core/Model/App.php(304):
Mage_Core_Model_App->_initBaseConfig()
#4 /home3/ramesqj3/public_html/app/code/core/Mage/Core/Model/App.php(348):
Mage_Core_Model_App->baseInit(Array)
#5 /home3/ramesqj3/public_html/app/Mage.php(686): Mage_Core_Model_App-
>run(Array)
#6 /home3/ramesqj3/public_html/index.php(83): Mage::run('', 'store')
#7 {main}
thrown in public_html/lib/Varien/Simplexml/Config.php on line 510

Related

Laravell, artisan error Class "App\Console\Kernel" does not exist

I have install fresh version of laravel and put inside my script, after that I want to run migrations but there is an error from artisan that class Kernel does not exist when oryginal file in /app/console/Kernel.php exist
error:
php artisan
PHP Fatal error: Uncaught ReflectionException: Class "App\Console\Kernel" does not exist in /home/john/domains/mydomain.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:875
Stack trace:
#0 /home/john/domains/mydomain.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(875): ReflectionClass->__construct()
(...)
#8 /home/john/domains/mydomain.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(845): Illuminate\Container\Container->make()
#9 /home/john/domains/mydomain.com/artisan(33): Illuminate\Foundation\Application->make()
#10 {main}
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [App\Console\Kernel] does not exist. in /home/john/domains/mydomain.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:877
Stack trace:
#0 /home/john/domains/mydomain.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(756): Illuminate\Container\Container->build()
(...)
#8 /home/john/domains/mydomain.com/artisan(33): Illuminate\Foundation\Application->make()
#9 {main}
thrown in /home/john/domains/mydomain.com/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 877
I have check if Kernel file exist, trying to remove vendor folder and composer install but problem still exist

How to resolve error on ProcessMaker 4.3.0 instllation?

My server specifications:
Centos 7.9
PHP 8.2
Nginx
MySQL 8.0
Composer 2.4.4
Node 16.18.1
NPM 8.19.3
Redis 5
Docker
I have installed all the dependencies required for ProcessMaker 4.3.0 running(mentioned the versions above). After enabling the npm, laravel and artisan horizan server, I hit the URL and get 500 error. On checking the nginx log I get the following error:
[error] 8150#8150: *512 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/opt/processmaker-4.3.0/storage/framework/views/ef0f3565ae74afa67f42e441ee3da8cfbe934ae1.php): Failed to open stream: Permission denied in /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187 Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(187): file_put_contents() #2 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(169): Illuminate\Filesystem\Filesystem->put() #3 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(55): Illuminate\View\Compilers\BladeCompiler->compile() #4 /opt/processmaker-4.3.0/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\View\Engines\CompilerEngine->get() #5 /opt/processmaker-4.3.0/vendor/laravel/fram...PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/opt/processmaker-4.3.0/storage/framework/views/ef0f3565ae74afa67f42e441ee3da8cfbe934ae1.php): Failed to open stream: Permission denied in /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187 Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(187): file_put_contents() #2 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(169): Illuminate\Filesystem\Filesystem->put() #3 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(55): Illuminate\View\Compilers\BladeCompiler->compile() #4 /opt/processmaker-4.3.0/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\View\Engines\CompilerEngine->get
I have already given 755 permission to the storage and vendor folder in processmaker. Also the owner ship and group of all the folders and files is nginx.
Whatelse, could I be missing out?

Symfony Composer error when i try to lunch symfony

When I launch a symfony project I get this error, I have already deleted and installed the composer but nothing changes.
PHP Fatal error: Uncaught PharException: internal corruption of phar "C:\Webtech\composer.phar" (__HALT_COMPILER(); not found) in C:\Webtech\composer.phar:28
Stack trace:
#0 C:\Webtech\composer.phar(28): Phar::mapPhar('composer.phar')
#1 {main}
thrown in C:\Webtech\composer.phar on line 28
Fatal error: Uncaught PharException: internal corruption of phar "C:\Webtech\composer.phar" (__HALT_COMPILER(); not found) in C:\Webtech\composer.phar:28
Stack trace:
#0 C:\Webtech\composer.phar(28): Phar::mapPhar('composer.phar')
#1 {main}
thrown in C:\Webtech\composer.phar on line 28```

Laravel logging "Class 'Arr' not found in Command line code:1"

The error below is the stack trace which is being logged to the laravel storage log every minute.
[2020-09-25 19:51:40] local.ERROR: Uncaught Error: Class 'Arr' not found in Command line code:1
Stack trace:
#0 {main}
thrown {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Uncaught Error: Class 'Arr' not found in Command line code:1
Stack trace:
#0 {main}
thrown at Command line code:1)
[stacktrace]
#0 {main}
"}
I haven't used this anywhere in my controllers or blade templates.
Any help is appreciated.
For anyone receiving this issue, This is actually an issue with a VSCode Laravel's Plugin called laravel-extra-intellisense.
The issue is actually from the plugin's issue as it uses functionality from Laravel 5.8 and above, so if your project uses Laravel's 5.7 and below you can do this to clear the error.
add this line in your config/app.php
'Arr' => Illuminate\Support\Arr::class, dlam config/app.php
and after adding the line, you may received a new error like so
[2020-10-06 05:57:04] local.ERROR: Uncaught ReflectionException: Class App\Policies\ModelPolicy does not exist in Command line code:1
Stack trace:
#0 Command line code(1): ReflectionClass->__construct('App\\Policies\\Mo...')
#1 [internal function]: {closure}('App\\Policies\\Mo...', 'App\\Model')
#2 Command line code(1): array_map(Object(Closure), Array, Array)
#3 {main}
thrown {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Uncaught ReflectionException: Class App\\Policies\\ModelPolicy does not exist in Command line code:1
Stack trace:
#0 Command line code(1): ReflectionClass->__construct('App\\\\Policies\\\\Mo...')
#1 [internal function]: {closure}('App\\\\Policies\\\\Mo...', 'App\\\\Model')
#2 Command line code(1): array_map(Object(Closure), Array, Array)
#3 {main}
thrown at Command line code:1)
[stacktrace]
#0 {main}
"}
You can solve this one by commenting this line in app\Providers\AuthServiceProvider.php
/**
* The policy mappings for the application.
*
* #var array
*/
protected $policies = [
// 'App\Model' => 'App\Policies\ModelPolicy', <-- comment this line
];
All of these changes is already in the lastest Laravel (version 5.8 and above)
I think this happens because the plugin's logger handler isn't working so that is why it logs in your laravel's project. So until it is fixed, please do the above or upgrade your laravel.
You can check this issue in the plugin's github
I appreciate the help but I solved this by uninstalling and reinstalling valet.
Makes no sense but thankfully the errors are gone.
Sean

Laravel: PHP artisan Command Stopped Working

php artisan --version
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Call to a member function getArgument() on null
Log files...
[2018-02-01 19:26:51] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Fatal error: Call to a member function getArgument() on null in /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Console/Command.php:216
Stack trace:
#0 /Library/WebServer/vhosts/mysitename/app/Console/Commands/ReportMonthlyMembershipAircraftBreakdown.php(69): Illuminate\Console\Command->argument('email')
#1 [internal function]: App\Console\Commands\ReportMonthlyMembershipAircraftBreakdown->__construct()
#2 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Container/Container.php(783): ReflectionClass->newInstanceArgs(Array)
#3 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('App\\Console\\Com...', Array)
#4 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(697): Illuminate\Container\Container->make('App\\Console\\Com...', Array)
#5 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Console/Application.php(115): Illuminate\Foundation\Application->make('App\\Console\\Com...')
#6 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Console/Application.php(129): Illuminate\Console\Application->resolve('App\\Console\\Com...')
#7 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(237): Illuminate\Console\Application->resolveCommands(Array)
#8 /Library/WebServer/vhosts/mysitename/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Illuminate\Foundation\Console\Kernel->getArtisan()
#9 /Library/WebServer/vhosts/mysitename/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 {main}
I have deleted my entire vendor folder and tried to reinstate it, and it always gets to here and blows up with the same error.
Generating autoload files
> php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Call to a member function getArgument() on null
Here is my version pulled from the file, since I can't run an artisan --version to get it for you.
/**
* The Laravel framework version.
*
* #var string
*/
const VERSION = '5.2.32';
Just looking for any help you can give me. This has happened on both my local copy and the site copy
The problem came from having the command
$this->argument in the contructor and not in the handle method.
I just never expected that a console file would stop php artisan --version from stopping to work because of a command file that was not going to be run yet.
Thanks btl for getting me on the right direction.
You have an error in your code somewhere most likely which is giving you this error. Do a global search on getArgument() and see where it can be coming from.
[internal function]: App\Console\Commands\ReportMonthlyMembershipAircraftBreakdown

Resources