how disable E_DEPRECATED in php for joomdle configuration - joomla

i use joomdle for integrating moodle and joomla but i face this message
E_DEPRECATED errors are enabled in your PHP configuration
and say me disable this setting .
i change php.ini to :
error_reporting = ~E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
but joomla say :
E_DEPRECATED errors are enabled in your PHP configuration
are there way for me ?

Joomla's configuration allows one to set a custom error reporting level, which overrides the one set in php.ini
Did you try ?
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
I think this will works.
Good luck.

Related

I am getting 404 error for css and js files after I installed magento

I installed magento 2.4.2 on bluehost vps hosting, but I am getting the website as shown in figure 1 I tried every solution I found online but non of them worked for me.
Solutions I tried:
1- changing the permission for pub/static dir.
2- In app/etc/di.xml, find the virtualType name=”developerMaterialization” section and its item called name=”view_preprocessed”. I changed Symlink with Copy in Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink.
3- php bin/magento setup:static-content:deploy -f command
4- RewriteEngine On, in /pub/static/.htaccess file
5- set sign static files to No (dev/static/sign to 0)
I wish someone can help
Hi #Silverwolf96 and welcome on StackOverflow.
There are few things you can try/check.
1.) Check in the page source if the URLs to your files are correct. If not set correctly, set them manually as described in step 2.
2.) Go to Store > Configuration > General > Web and set under Base URLs & Base URLs (Secure) your URLs for static files - you can set this URL manually and it needs to be set as http://www.example.com/static/
3.) You can try to remove pub/static/frontend on the server
4.) Check what happens if you select Magento Luma as the default theme

laravel-localization hide default locale

I'm using Laravel-Localization 1.2.6 in Laravel 5.3
When I set:
hideDefaultLocaleInURL = true
It's not working.
locale is set to 'sk'
fallback_locale is set to 'sk'
But I can access both domain.app & domain.app/sk
Also when I switch language to SK language code is still in URL.
Everything else is working fine... Any suggestions?
Just clean your config cache
php artisan config:cache

info.php shows log_errors is Off but it is set to be On in the php.ini of Loaded Configuration File

PHP info page shows that log_errors is set Off even tho I set it On
in info.php page shows:
Loaded Configuration File -> /etc/php/7.0/apache2/php.ini
Scan this dir for additional .ini files -> /etc/php/7.0/apache2/conf.d
top portion of altered php.ini file:
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
display_errors = On
log_errors = On
error_log = /var/log/php-errors.log
I have tracked the rest of php.ini file and found other log_error reference which I have also set On
log_errors = On
I am not sure if I should use ini_set('display_errors', 1); format in .ini files, I have found answers about this and used everything to test if anything worked but still.
So what's wrong with config?
Note: yes, I have restarted apache2.
Using up to date Ubuntu Server x64 16.04 running PHP Version 7.0.13-0ubuntu0.16.04.1
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
won't work in ini file.
to enable error reporting write following line in your ini file
error_reporting = E_ALL
for more info refer here

session problems on mamp

I have a problem with sessions, my php code works perfectly on easyPhp but not on MAMP.
With easyPhp I have to modify the php.ini file from session.auto_start = 0 to session.auto_start = 1.
What should I do to make it work with MAMP?
For MAMP, the default php.ini setting is session.auto_start = 0. So I'm assuming you wish to modify it to session.auto_start = 1 as you did for easyPHP.
In order to do so, follow these steps:
Start MAMP
File > Edit Template > PHP > [select php.ini file]*
Find the line that says: session.auto_start = 0
Change it to session.auto_start = 1
Save the file
Restart your MAMP server
Once you change any of the MAMP configuration defaults, MAMP will generate an appropriate configuration file in the following subdirectory: ~/Library/Application\ Support/appsolute/MAMP\ PRO/templates/, so you can edit those files directly, instead of going through MAMP.
* The php.ini file you select should match the version you're running through MAMP (selected under server > PHP, in the main window).

How to turn on magento error messages?

I have installed Magento Community edition and tried creating my first simple hello world module. After a few hours I finally got it working.
My issues were I had used incorrect casing in some of the XML tags.
While trying to get it to work I tried to load the page a not found message was displayed, but no error.
I have switched errors on in the admin control panel System > Configuration > Developer > Log Settings and wrote a line which I know should have thrown an error but I just got a blank screen
How do I get errors to display in Magento?
Is it considered an error when I use incorrect casing in an xml file or is that an issue where I would not receive an error message? And if that is the case how would I quickly find the file that is causing the issue (obviously not a problem at the moment, but I can imagine as the module become functional it will be hard to find a single casing issue that is causing the problem)
For enable error reporting
In Index page change the following:
error_reporting(E_ALL | E_STRICT);
to
error_reporting(E_ALL);
Set $_SERVER['MAGE_IS_DEVELOPER_MODE'] = true
and uncomment this line
#ini_set('display_errors', 1);
In Errors folder rename local.xml.sample to local.xml.
hope this help.
to complete the pankaj post,
this work for me
index.php
ini_set('display_errors', 1);
error_reporting(E_ALL);
$_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;
Here are the steps that you should do in order to set Magento to display errors on the browser:
System > Cache Management > Disable All
System > Configuration > Advanced > Developer > Log Settings > Enabled => Yes
System > Configuration > Web > Search Engine Optimization > Use Wbe Server Rewrites => Yes
System > Index Management > Reindex All
Open .htaccess and set: SetEnv MAGE_IS_DEVELOPER_MODE "true" at the end of the file
Open .htaccess and set: php_value display_errors On somewhere within
Rename or copy /errors/local.xml.sample to /errors/local.xml
Modifying this code in magneto directory index.php:
Search for error_reporting(E_ALL | E_STRICT);
Replace with
error_reporting(E_ALL);
$_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;
OR
Uncomment it by removing the # sign from
#ini_set('display_errors', 1);
Refereed Link:
http://www.templatemonster.com/help/magento-how-to-display-error-messages.html

Resources