Notice: Undefined index: host in White Screen of Death - php

I have tested plugins & checked PHP versions. So far I've not been able to fix the issue(s):
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 461
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 462
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 462
Notice: Undefined index: scheme in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 482
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 461
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 461
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 463
Notice: Undefined index: host in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 465
Notice: Undefined index: scheme in /home/f2drufxgri7b/public_html/wp-includes/canonical.php on line 482

I finally fixed it by Updating the Wordpress manually and using PHP 5.6 to access the WPAdmin. Later I updated to latest PHP version and updated all Plugins from WP Admin.
It seems that the error was due to PHP, Wordpress and Plugins Updates wish created the WhiteScreen of Death.
I stronlgly reccomend Updating PHP and Wordpress versions before migrating the website.

Related

Why wamp localhost keeps showing me notices?

I had problems with localhost in wampserver when, I accidentally deleted the wamplangues folder.
I download it from here https://github.com/phlyper/wamp-conf/tree/master/wamp/www/wamplangues
but it's keeps showing me errors like:
Notice: Undefined index: versmaria in C:\wamp64\www\index.php on line
275 Notice: Undefined index: mariaportUsed in C:\wamp64\www\index.php
on line 276 Undefined index: docmaria in C:\wamp64\www\index.php on
line 276
I searched in the index.php file and I saw that this is related to the langues folder... do you have any ideas about that? I'm stucked!

WordPress "Notice: Undefined index: host" after initial setup running locally on linux

I'm trying to set up WordPress on my laptop running Kali Linux. Everything works until I install WordPress and the theme I am using. I'm trying to use roots sage on bedrock. But after I get through the installation process I get a notice in the admin:
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2937
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2937
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
And in the frontend:
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
Can anyone explain why I'm getting these notices? I must have missed something but I've gone through the instructions several times and I'm out of ideas. Thanks
You can define WP_HOME & WP_SITEURL in wp-config.php
define('WP_HOME','http://localhost/project_folder_name');
define('WP_SITEURL','http://localhost/project_folder_name');
This can also be caused by an error with the siteurl and home options in wp_options table.
Make sure the url's have a host as well, http://example.com not just example.com.
I just now came across this and for me, switching back from PHP 8.x.x to PHP 7.x.x resolved the issue.

trouble installing vtiger crm 6.4.0 on xampp

I have downloaded Vtiger CRM from https://sourceforge.net/projects/vtigercrm.
After downloading, I tried to install in my localhost XAMPP server.
I extracted the tar.gz file.
I couldn't find any database file inside the folder
While I ran the vtiger crm folder in localhost, many errors are coming. No installation page appears.
These are the error messages. Which settings to change in my XAMPP server can somebody tell.
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 17
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 18
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 19
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 20
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 21
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 22
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 23
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 24
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 25
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 26
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 27
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 28
Notice: Undefined variable: mod_strings in C:\xampp\htdocs\vtigercrm\modules\CustomView\CustomView.php on line 29
Notice: Undefined index: authenticated_user_id in C:\xampp\htdocs\vtigercrm\includes\main\WebUI.php on line 44
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: current_language in C:\xampp\htdocs\vtigercrm\includes\runtime\Globals.php on line 21
Notice: Undefined property: Install_Index_view::$viewer in C:\xampp\htdocs\vtigercrm\includes\runtime\Controller.php on line 117
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: theme in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Installation Wizard
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Welcome
Help-Icon
Vtiger Logo
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Welcome to Vtiger CRM 6 Setup Wizard
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
This wizard will guide you through the installation of Vtiger CRM6
<br /><b>Notice</b>: Undefined index: language in <b>C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php</b> on line <b>31</b><br /><br /><b>Notice</b>: Undefined index: action in <b>C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php</b> on line <b>670</b><br /><br /><b>Notice</b>: Undefined index: file in <b>C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php</b> on line <b>670</b><br />Install
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: in C:\xampp\htdocs\vtigercrm\includes\runtime\LanguageHandler.php on line 157
Powered by vtiger CRM 6.4.0 © 2004 - 2016 vtiger.com |
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: in C:\xampp\htdocs\vtigercrm\includes\runtime\LanguageHandler.php on line 157
Read License |
Notice: Undefined index: language in C:\xampp\htdocs\vtigercrm\includes\runtime\BaseModel.php on line 31
Notice: Undefined index: action in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: file in C:\xampp\htdocs\vtigercrm\include\utils\ListViewUtils.php on line 670
Notice: Undefined index: in C:\xampp\htdocs\vtigercrm\includes\runtime\LanguageHandler.php on line 157
To disable this error message just add one line in top of index.php file and run again CRM to install it.
error_reporting(0);
After successful installation you can remove that line.
Did you check the prerequisites are met?
MYSQL Requirements
Please make sure to review MySQL configuration (my.cnf or server start parameters)
SQL_MODE Should not have STRICT_TRANS_TABLE
ENGINE=InnoDB Should be available. (Turn off –skip-innodb)
PHP Extensions
Following extensions should be enabled for your PHP setup
GD Mandatory Charts and graphs generation are dependent on this library.
IMAP Mandatory Webmails Module is dependent on this library.
Zlib Mandatory
OpenSSL Optional Imap with OpenSSL should be enabled in case Mail server needs to be connected via SSL
Curl Optional
After installing XAMPP stop all services and using notepad configure PHP.ini (inside php folder xampp installation) with the following values:
PHP Configuration
Make sure to verify if your PHP configuration meets the recommended values.
Variable Value
allow_call_time_pass_reference on
error_reporting E_WARNING & ~E_NOTICE & ~E_DEPRECATED
safe_mode off
display_errors on
file_uploads on
max_execution_time 600
memory_limit 64M
log_errors off
output_buffering on
short_open_tag On
allow_call_time_pass_reference on
register_globals off
You should also check the permissions of files.
Regards
These are just warning and notices so search in your php.ini file in xampp->php->php.ini for error_reporting=On and turn it off as error_reporting=Off. Then restart your xampp server and once restart your system also. Then try hope it will work . The same problem i had and i solved it in above way.
in php.ini error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

Opencart Undefined index Errors in product

I am using OpenCart 1.4.9 and I have been dealing with Undefined index Errors in product.php recently, I suspect it happens every time the user is creating/input a new product on the dashboard.
How to fix these errors because it makes the server resource overload, my site resource usage peaked at 91% sometimes 100% on the cPanel?
Here is the model file.
Here is the controller file.
Here are the errors I am getting:
PHP Notice: Undefined index: model in /home/xxx/public_html/admin/controller/catalog/product.php on line 651
PHP Notice: Undefined index: sku in /home/xxx/public_html/admin/controller/catalog/product.php on line 659
PHP Notice: Undefined index: location in /home/xxx/public_html/admin/controller/catalog/product.php on line 667
PHP Notice: Undefined index: keyword in /home/xxx/public_html/admin/controller/catalog/product.php on line 687
PHP Notice: Undefined index: image in /home/xxx/public_html/admin/controller/catalog/product.php on line 703
PHP Notice: Undefined index: image in /home/xxx/public_html/admin/controller/catalog/product.php on line 710
PHP Notice: Undefined index: manufacturer_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 723
PHP Notice: Undefined index: shipping in /home/xxx/public_html/admin/controller/catalog/product.php on line 731
PHP Notice: Undefined index: date_available in /home/xxx/public_html/admin/controller/catalog/product.php on line 739
PHP Notice: Undefined index: quantity in /home/xxx/public_html/admin/controller/catalog/product.php on line 747
PHP Notice: Undefined index: minimum in /home/xxx/public_html/admin/controller/catalog/product.php on line 755
PHP Notice: Undefined index: subtract in /home/xxx/public_html/admin/controller/catalog/product.php on line 763
PHP Notice: Undefined index: sort_order in /home/xxx/public_html/admin/controller/catalog/product.php on line 771
PHP Notice: Undefined index: stock_status_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 783
PHP Notice: Undefined index: price in /home/xxx/public_html/admin/controller/catalog/product.php on line 791
PHP Notice: Undefined index: cost in /home/xxx/public_html/admin/controller/catalog/product.php on line 799
PHP Notice: Undefined index: status in /home/xxx/public_html/admin/controller/catalog/product.php on line 807
PHP Notice: Undefined index: tax_class_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 819
PHP Notice: Undefined index: weight in /home/xxx/public_html/admin/controller/catalog/product.php on line 827
PHP Notice: Undefined index: weight_class_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 841
PHP Notice: Undefined index: length in /home/xxx/public_html/admin/controller/catalog/product.php on line 851
PHP Notice: Undefined index: width in /home/xxx/public_html/admin/controller/catalog/product.php on line 859
PHP Notice: Undefined index: height in /home/xxx/public_html/admin/controller/catalog/product.php on line 867
PHP Notice: Undefined index: length_class_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 881
The following are some possibilities:
The fields (listed in your errors) don't exist in your database.
There might be some problem with your product_form.tpl template file.
Check whether the values are getting inserted correctly to the product tables while adding a product.
Comparing the admin product files with a fresh unedited OpenCart 1.4.9 admin product files will help you to find out the issue.
These simply occur when $product_info['variable mentioned in error is not specified'], a simple, and complete fix is to edit the query like below:
elseif (isset($product_info)) {
$this->data['location'] = $product_info['location'];
}
Into:
elseif (isset($product_info['location'])) {
$this->data['location'] = $product_info['location'];
}
And do so for each of the cases, furthermore you can do this for all $product_info[] data to avoid future errors like that.
In case of when just some of the indexes undefined, the reason for it may be very simple: if the properties are not set in the admin panel (like in my case for Length, Weight and in stock).

How to get the Ansinerator library to work?

I'm trying to get the Ansinerator library to work my on my localhost, but something's amiss.
I'm receiving the following errors:
Notice: Undefined index: hash in ansi.php on line 23 Notice: Undefined index: aml in ansi.php on line 37 Notice: Undefined variable: PNG_DESTRUCT in ansi.php on line 119 Notice: Undefined offset: -1 in ansi.php on line 362 Notice: Trying to get property of non-object in ansi.php on line 362 Notice: Undefined variable: links in ansi.php on line 459 Notice: Trying to get property of non-object in ansi.php on line 677 Notice: Undefined variable: links in ansi.php on line 459 Notice: Undefined variable: map_link in ansi.php on line 687
Any idea where am I going wrong with this one? I've installed the php-gd library, restarted the server, and while runs perfectly on production server, localhost will refuse. Ideas?
Thank you.
Check
- That you've got 'proper' versions of everything installed on localhost. (Compare localhost with production.) There's obviously something different between the 2 servers here, just use phpinfo() to check.
Restart localhost again? (Just kidding...)
Is it possible that you have set different error reporting levels on both servers?
Before anything, put error_reporting(E_ALL); at the top of your script on both servers and see if it runs perfectly. (My guess is you will get errors on both servers)

Categories