error 500 on joomla Global Configuration save - joomla

I'm new to joomla and I'm configuring my first site, but ended having a problem with the Global Configuration, when I try to save it, i receive a 500 error.
I'm using php internal server to run it, "php -S localhost:8081"... everything else is working fine..
here's the stacktrace, doesn't seem to be a permission error, but i'm not sure.
500 - An error has occurred.
JModel: :getName() : Can't get or parse class name.
Return to Control Panel
Call stack
# Function Location
1 JAdministrator->dispatch() /home/dshiga/dev/joomla_hairs/administrator/index.php:46
2 JComponentHelper::renderComponent() /home/dshiga/dev/joomla_hairs/administrator/includes/application.php:153
3 JComponentHelper::executeComponent() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/helper.php:351
4 require_once() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/helper.php:383
5 JController->execute() /home/dshiga/dev/joomla_hairs/administrator/components/com_config/config.php:18
6 ConfigControllerApplication->save() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/controller.php:761
7 JController->getModel() /home/dshiga/dev/joomla_hairs/administrator/components/com_config/controllers/application.php:55
8 JController->createModel() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/controller.php:793
9 JModel::getInstance() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/controller.php:599
10 JModel->__construct() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/model.php:201
11 JError::raiseError() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/model.php:220
12 JError::raise() /home/dshiga/dev/joomla_hairs/libraries/joomla/error/error.php:251

Finally found out, the problem is caused by the use of php internal server through "php -S" command, not sure of exactly what causes the error in this circustances, but hosting the site under apache solved the problem.

Related

Where is the laravel error file located? or Is there a default error log in Laravel?

I'm working on a medium project -with laravel- for quite a long time now and of course I use the debugger of the framework -laravel-, but now from time to time I see the page of error but there is just "whoops something went wrong without" without any specifications for the error, and I see it a lot in ajax requests, but I just actualize the page and its gone!;
Finally the error show up again and I could see it in my terminal with the command tail down here
this is what I got
[2016-12-28 14:54:04] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:45
Stack trace:
#0 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php(25): Illuminate\Encryption\EncryptionServiceProvider->getEncrypterForKeyAndCipher(NULL, 'AES-256-CBC')
#1 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Container\Container.php(731): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
I've found this on github it helped https://github.com/orchestral/testbench/issues/93
Make sure APP_DEBUG is set to true in your .env file
You can check the errors with the following command tail -f storage/logs/laravel.log Could be different errors

Laravel 5 and iPage Hosting

I have a shared hosting at iPage. I did the steps listed here : Deploy Laravel 5 using only FTP in a shared hosting (Moving files, editing htaccess) and yet still facing the same 500 error :
20161126T060216: bluepenlabs.com/projects/peugeot/public/index.php PHP
Warning:
require(/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/public/bootstrap/autoload.php):
failed to open stream: No such file or directory in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/public/index.php
on line 22 PHP Fatal error: require(): Failed opening required
'/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/public/bootstrap/autoload.php'
(include_path='.:/usr/local/lib/php-5.5.22-amd64/lib/php') in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/ 20161126T061559:
bluepenlabs.com/projects/peugeot/public/index.php
PHP Parse error:
syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE)
in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
on line 475
20161126T061939: bluepenlabs.com/projects/peugeot/public/index.php PHP
Parse error: syntax error, unexpected '.', expecting '&' or variable
(T_VARIABLE) in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
on line 475
Note that i'm trying to install the laravel project in a subdirectory /projects/peugeot/
Thank you
I once hosted a laravel project on iPage(shared hosting). I faced 500 errors. Not showing much description.
This may be because of the Laravel 5.3 min server requirements.
Ipage hosting site normally give a version below the min requirement. You need to change the setting on your Control Panel. Try upgrading your PHP version.
Hope this helps.

Error while hosting CodeIgniter Framework to online server

I need to solve the below issue:
When I tried to hosting codeIgniter framework to my online server, this error occurred.
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/lviscomp/public_html/system/core/Output.php:528)
Filename: core/Common.php
Line Number: 573
Backtrace:
A PHP Error was encountered
Severity: Error
Message: XCache: Cannot init
Filename: Unknown
Line Number: 0
Backtrace:
I had the same xcache issue in my Laravel application. I resolved it by upgrading the PHP version.
I think this might help you as well.
Go to your cPanel
Go to software section and click "select PHP version"
Change your PHP version from "native" to 5.4 or 5.5 (It will give you a list of drivers with checkboxes)
Select Xcache and enable it
Save your settings as well as PHP version
I hope it will work.
For Above Error header information already sent...
Click here!
XCache: Cannot init
Try Disable XCACHE from the Php configuration..
if this doesn't work ..
I think this is a question for your host.

Debugging a Laravel 5 artisan migrate unexpected T_VARIABLE FatalErrorException

When running artisan migrate on a Laravel 5 project, it is failing with the following FatalErrorException:
$ artisan migrate -vvv --force
[Symfony\Component\Debug\Exception\FatalErrorException] syntax
error, unexpected '$table' (T_VARIABLE)
How do I get the file and line that is causing the error?
If in anyway relevant, I'm on a Windows 7 x64 machine with WAMP - PHP 5.6 and Laravel Framework version 5.1.10 (LTS).
There might be a semicolon or bracket missing a line
Check all in your migration files.
Laravel is configured to create daily log files for your application
which are stored in the storage/logs directory.
http://laravel.com/docs/5.1/errors#logging
This class Symfony\Component\Debug\Exception\FatalErrorException has some differences compared with the other Exception classes and it is not properly presented by the "error renderers" or "error notifiers".
A New sentry "error notifier" ("getsentry/sentry-php" version >= "2.0") will give you a proper stack trace.
Here is issue where is reported : https://github.com/getsentry/sentry-php/issues/761
Here is the PR for fix : https://github.com/getsentry/sentry-php/pull/763

site down - Fatal error: includes/src/Mage_Core_Model_Cache.php on line 434

My site become completely inaccesible. Opening both frontend and backend gives same error message..
Fatal error: Call to a member function getAllOptions() on a non-object in /home/decoplan/public_html/includes/src/Mage_Core_Model_Cache.php on line 434
Site: decoplanters.co.uk
Magento 1.5.1 Error -
I have cleared the var/cache however the problem still exists.
I hope someone can help as all 4 sites are down.
Kind regards
Prano
Try empty database cache by running this sql statement
TRUNCATE TABLE `core_cache`
I hope it will work.

Resources