Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Notices, Warnings and Errors
#1
These are some PHP warning/notices I have seen. Probably some not very important but I though I'd post them here for the record. It's just a selection as there is a load more notices but I suppose they are not important so I have only added a few.

System:
Synology Box running DSM 6.0.2 / Linux 3.2.40 #8451
COREbos 7
PHP Version 5.6.28


Errors below:

Code:
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /corebos/adodb/drivers/adodb-mysql.inc.php on line 480
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
Warning: Cannot modify header information - headers already sent in /corebos/index.php on line 68
Warning: Cannot modify header information - headers already sent in /corebos/index.php on line 491
Strict Standards: Only variables should be passed by reference in /corebos/modules/RecycleBin/ListView.php on line 156
Notice: Undefined variable: sorder in /corebos/modules/RecycleBin/ListView.php on line 109
Notice: Undefined offset: 2 in /corebos/include/utils/DetailViewUtils.php on line 1748
Notice: Undefined index: query in /corebos/modules/RecycleBin/ListView.php on line 90
Notice: Undefined index: parentprofile in /corebos/modules/Settings/profilePrivileges.php on line 28
Notice: Undefined index: radiobutton in /corebos/modules/Settings/profilePrivileges.php on line 44
Notice: Undefined variable: theme in /corebos/modules/Settings/profilePrivileges.php on line 731
Notice: Undefined index: recprefix in /corebos/modules/Settings/CustomModEntityNo.php on line 17
Notice: Undefined index: mode in /corebos/modules/Settings/CustomModEntityNo.php on line 18
Notice: Undefined index: recnumber in /corebos/modules/Settings/CustomModEntityNo.php on line 25
Notice: Undefined variable: STATUSMSG in /corebos/modules/Settings/CustomModEntityNo.php on line 94
Reply
#2
For the first deprecated messages use mysqli in your config.inc.php

$dbconfig['db_type'] = 'mysqli';

For the second one, do what it says, set always_populate_raw_post_data' to '-1, we are already using php://input

I got the notice and warnings fixed along with some others. As I am sure you have seen we have eliminated many of these to the point where you can actually enter the application with error_reporting set to E_ALL (!). Still you should always use E_ERROR in production.

We will continue to eliminate these as we find them and your help is really useful, so keep informing as you can

Thanks
Joe
TSolucio
Reply
#3
No worries.

I actually set it to E_ALL as I was investigating the issue I mentioned to you about in my email. Temp files in that folder are not being updated when a template is modified. Maybe a PHP config issue I don't know honestly.

Here are some more notices in case it is helpful. There is also a bunch of notices on cached files in template_c. I only included 1 for the sake of it but I am guessing these can be ignored.


Code:
Notice: Undefined index: CUSTOMBLOCKS in /corebos/Smarty/templates_c/7a0e9014d109cc7e10fd370fff9e390b7b3abd7f_0.file.salesEditView.tpl.php on line 198
Notice: Undefined index: encode_val in /corebos/modules/Contacts/EditView.php on line 18
Notice: Undefined variable: image_array in /corebos/include/utils/EditViewUtils.php on line 625
Notice: Undefined index: createmode in /corebos/modules/Contacts/EditView.php on line 123
Notice: Trying to get property of non-object in /corebos/modules/Calendar4You/CalendarView.php on line 44
Notice: Trying to get property of non-object in /corebos/modules/Calendar4You/CalendarView.php on line 45
Notice: Undefined index: cal_month_long in /corebos/modules/Calendar/Date.php on line 317
Notice: Undefined index: cal_month_short in /corebos/modules/Calendar/Date.php on line 316
Notice: Undefined index: cal_weekdays_long in /corebos/modules/Calendar/Date.php on line 315
Notice: Undefined index: cal_weekdays_short in /corebos/modules/Calendar/Date.php on line 314
Notice: Undefined index: day in /corebos/modules/Calendar/CalendarCommon.php on line 380
Notice: Undefined index: month in /corebos/modules/Calendar/CalendarCommon.php on line 380
Notice: Undefined index: year in /corebos/modules/Calendar/CalendarCommon.php on line 380
Notice: Undefined variable: invite_checked in /corebos/modules/Calendar4You/CalendarView.php on line 164
Notice: Undefined variable: subtab in /corebos/modules/Calendar4You/CalendarView.php on line 88
Notice: Undefined variable: Task_Status in /corebos/modules/Calendar4You/CalendarView.php on line 300
Notice: Undefined variable: Task_Status in /corebos/modules/Calendar4You/CalendarView.php on line 305
Notice: Undefined index: save_tax in /corebos/modules/Settings/TaxConfig.php on line 25
Notice: Undefined index: sh_save_tax in /corebos/modules/Settings/TaxConfig.php on line 35
Notice: Undefined index: edit_tax in /corebos/modules/Settings/TaxConfig.php on line 50
Notice: Undefined index: sh_edit_tax in /corebos/modules/Settings/TaxConfig.php on line 54
Notice: Undefined index: add_tax_type in /corebos/modules/Settings/TaxConfig.php on line 60
Notice: Undefined index: sh_add_tax_type in /corebos/modules/Settings/TaxConfig.php on line 66
Notice: Undefined index: disable in /corebos/modules/Settings/TaxConfig.php on line 73
Notice: Undefined index: enable in /corebos/modules/Settings/TaxConfig.php on line 73
Notice: Undefined index: sh_disable in /corebos/modules/Settings/TaxConfig.php on line 81
Notice: Undefined index: sh_enable in /corebos/modules/Settings/TaxConfig.php on line 81
Notice: Undefined variable: getlist in /corebos/modules/Settings/TaxConfig.php on line 92
Reply
#4
Code:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/corebos/Smarty/templates/modules/RecycleBin/RecycleBinContents.tpl" on line 32 "{/if}" unexpected closing tag <-- thrown in /corebos/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 32

I was unable to reproduce the above error twice. Not sure where in the recycle bin module I clicked to get this error.


Code:
Notice: Undefined index: in /corebos/modules/Vtiger/EditView.php on line 156
Notice: Undefined index: type in /corebos/include/QueryGenerator/QueryGenerator.php on line 1327
Notice: Use of undefined constant iconv - assumed 'iconv' in /corebos/include/QueryGenerator/QueryGenerator.php on line 1371
Notice: Undefined variable: value in /corebos/include/QueryGenerator/QueryGenerator.php on line 1397
Notice: Undefined variable: value in /corebos/include/QueryGenerator/QueryGenerator.php on line 1406
Notice: Undefined index: type in /corebos/include/utils/SearchUtils.php on line 869
Notice: Use of undefined constant iconv - assumed 'iconv' in /corebos/include/utils/SearchUtils.php on line 915
Notice: Undefined offset: 0 in /corebos/modules/Vtiger/DetailView.php on line 50
Notice: Undefined index: cf_685 in /corebos/modules/CustomView/CustomView.php on line 352
Notice: Undefined index: startdate in /corebos/modules/CustomView/EditView.php on line 102
Notice: Undefined index: enddate in /corebos/modules/CustomView/EditView.php on line 103
Notice: Undefined variable: shtml in /corebos/modules/CustomView/EditView.php on line 313
Reply
#5
I got most of these and then some. still a lot to go :-)

thanks!
Joe
TSolucio
Reply
#6
Code:
Notice: Undefined index: column_values in /corebos/include/Webservices/VTQL_Parser.php on line 1238
Notice: Use of undefined constant SEMI - assumed 'SEMI' in /corebos/include/Webservices/VTQL_Parser.php on line 1164
Notice: Use of undefined constant SEMI - assumed 'SEMI' in /corebos/include/Webservices/VTQL_Parser.php on line 1165
Notice: Undefined index: operators in /corebos/include/Webservices/VTQL_Parser.php on line 210
Notice: Undefined index: crmid in /corebos/include/Webservices/VtigerModuleOperation.php on line 253
Notice: Undefined offset: 1 in /corebos/include/Webservices/VtigerCRMObjectMeta.php on line 195
Notice: Undefined index: pick_module in /corebos/modules/Settings/LanguageEdit.php on line 42
Notice: Undefined index: cbAuditTrail in /corebos/modules/Settings/LanguageEdit.php on line 67
Notice: Undefined index: cbAuditTrail in /corebos/modules/Settings/LanguageEdit.php on line 70
Notice: Undefined index: ERR_INVALID_SECONDARY_EMAIL_ADDRESS in /corebos/modules/Settings/LanguageEdit.php on line 101
Notice: Undefined index: filter_translate in /corebos/modules/Settings/LanguageEdit.php on line 255
Notice: Undefined variable: tr_list in /corebos/modules/Settings/LanguageEdit.php on line 370
Notice: Undefined variable: tr_list2 in /corebos/modules/Settings/LanguageEdit.php on line 371
Notice: Undefined offset: 0 in /corebos/modules/Vtiger/EditView.php on line 111
Notice: Undefined index: error in /corebos/modules/VtigerBackup/BackupServerConfig.php on line 24
Notice: Undefined index: error1 in /corebos/modules/VtigerBackup/BackupServerConfig.php on line 28
Notice: Undefined index: ajax in /corebos/modules/VtigerBackup/BackupServerConfig.php on line 123
Warning: Cannot modify header information - headers already sent by (output started at /corebos/Smarty/libs/sysplugins/smarty_internal_template.php:197) in /corebos/modules/Mobile/index.php on line 18
Notice: Undefined index: in /corebos/include/utils/UserInfoUtil.php on line 658
Notice: Undefined offset: 43 in /corebos/include/utils/UserInfoUtil.php on line 1080
Notice: Undefined variable: groups_combo in /corebos/include/utils/CommonUtils.php on line 1976
Notice: Undefined variable: result in /corebos/include/utils/UserInfoUtil.php on line 3596
Notice: Undefined offset: 29 in /corebos/include/utils/UserInfoUtil.php on line 3767
Notice: Undefined offset: 29 in /corebos/include/utils/UserInfoUtil.php on line 3811
Notice: Undefined offset: 43 in /corebos/include/utils/UserInfoUtil.php on line 1080
Notice: Undefined variable: per in /corebos/data/Tracker.php on line 113
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)