Error while creating and saving anything ... Help Please


#1

After few months of usage gave error before it was perfect…
<?php defined(‘BASEPATH’) OR exit(‘No direct script access allowed’); ?> ERROR - 2019-04-06 08:46:38 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:40 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:42 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:44 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:45 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:46 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:48 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:46:55 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:06 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:09 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:21 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:23 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:26 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:27 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:28 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:32 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:32 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:33 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:39 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:41 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:43 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:55 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:55 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:57 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:47:59 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:48:23 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:48:23 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:48:25 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:48:27 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:48:39 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:48:41 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/clients/controllers/Ajax.php 60 ERROR - 2019-04-06 08:49:03 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 174 ERROR - 2019-04-06 08:49:19 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 174 ERROR - 2019-04-06 08:50:12 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/upload/controllers/Upload.php 134 ERROR - 2019-04-06 08:50:15 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32 ERROR - 2019-04-06 08:50:51 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32 ERROR - 2019-04-06 08:51:06 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/upload/controllers/Upload.php 134 ERROR - 2019-04-06 08:51:24 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32 ERROR - 2019-04-06 08:51:46 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/upload/controllers/Upload.php 134 ERROR - 2019-04-06 08:52:38 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32 ERROR - 2019-04-06 09:50:25 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/upload/controllers/Upload.php 134 ERROR - 2019-04-06 09:50:27 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32 DEBUG - 2019-04-06 09:51:11 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:11 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:11 --> Sessions MX_Controller Initialized DEBUG - 2019-04-06 09:51:11 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:11 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:11 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:11 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:11 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:11 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:12 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:12 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:12 --> Sessions MX_Controller Initialized DEBUG - 2019-04-06 09:51:12 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:12 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:12 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:12 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:12 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:12 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:12 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/alerts.php DEBUG - 2019-04-06 09:51:12 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/sessions/views/session_login.php DEBUG - 2019-04-06 09:51:12 --> Total execution time: 0.0635 DEBUG - 2019-04-06 09:51:14 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:14 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:14 --> Sessions MX_Controller Initialized DEBUG - 2019-04-06 09:51:14 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:14 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:14 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:14 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:14 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:14 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:14 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/sessions/models/Mdl_sessions.php DEBUG - 2019-04-06 09:51:15 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:15 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:15 --> Dashboard MX_Controller Initialized DEBUG - 2019-04-06 09:51:15 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:15 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:15 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/invoices/models/Mdl_invoice_amounts.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quote_amounts.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/invoices/models/Mdl_invoices.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quotes.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/projects/models/Mdl_projects.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/tasks/models/Mdl_tasks.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/alerts.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/dashboard/views/index.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/head.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/navbar.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/sidebar.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/fullpage-loader.php DEBUG - 2019-04-06 09:51:15 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/layout.php DEBUG - 2019-04-06 09:51:15 --> Total execution time: 0.1138 DEBUG - 2019-04-06 09:51:18 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:18 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:18 --> Quotes MX_Controller Initialized DEBUG - 2019-04-06 09:51:18 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:18 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:18 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quotes.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quote_items.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/tax_rates/models/Mdl_tax_rates.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/units/models/Mdl_units.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quote_tax_rates.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/custom_fields/models/Mdl_custom_fields.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/custom_values/models/Mdl_custom_values.php DEBUG - 2019-04-06 09:51:18 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/custom_fields/models/Mdl_quote_custom.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/views/modal_delete_quote.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/views/modal_add_quote_tax.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/alerts.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/clients/views/partial_client_address.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/views/partial_item_table.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/upload/views/dropzone-quote-html.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/upload/views/dropzone-quote-scripts.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/views/view.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/head.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/navbar.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/sidebar.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/includes/fullpage-loader.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/layout/views/layout.php DEBUG - 2019-04-06 09:51:19 --> Total execution time: 0.0915 DEBUG - 2019-04-06 09:51:19 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:19 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:19 --> Upload MX_Controller Initialized DEBUG - 2019-04-06 09:51:19 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:19 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:19 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:19 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/upload/models/Mdl_uploads.php ERROR - 2019-04-06 09:51:19 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/upload/controllers/Upload.php 134 DEBUG - 2019-04-06 09:51:22 --> UTF-8 Support Enabled DEBUG - 2019-04-06 09:51:22 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-04-06 09:51:22 --> Ajax MX_Controller Initialized DEBUG - 2019-04-06 09:51:22 --> Config file loaded: /home/nasir78/marvelitcs.com/erp/application/config/invoice_plane.php DEBUG - 2019-04-06 09:51:22 --> Encryption: Auto-configured driver ‘openssl’. DEBUG - 2019-04-06 09:51:22 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_settings.php DEBUG - 2019-04-06 09:51:22 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/settings/models/Mdl_versions.php DEBUG - 2019-04-06 09:51:22 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/controllers/…/modules/layout/controllers/Layout.php DEBUG - 2019-04-06 09:51:22 --> Layout MX_Controller Initialized DEBUG - 2019-04-06 09:51:22 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quote_items.php DEBUG - 2019-04-06 09:51:22 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/quotes/models/Mdl_quotes.php DEBUG - 2019-04-06 09:51:22 --> File loaded: /home/nasir78/marvelitcs.com/erp/application/modules/units/models/Mdl_units.php ERROR - 2019-04-06 09:51:22 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32 ERROR - 2019-04-06 09:53:53 --> Severity: Error --> Call to undefined function json_encode() /home/nasir78/marvelitcs.com/erp/application/modules/upload/controllers/Upload.php 134 ERROR - 2019-04-06 09:53:57 --> Severity: Error --> Call to undefined function json_decode() /home/nasir78/marvelitcs.com/erp/application/modules/quotes/controllers/Ajax.php 32


#2

If you are on a debian based system

sudo apt install php-json

#3

Hi

We are on linux hosting with mysql. It was working since many months just today it is not allowing me to create quote etc

I can login successfully can see all invoice but cannot save. I sent you log file… what is the issue.

Show quoted text


#4

Mohammad the issue is that there is a piece of software missing on the server.
You need to contact your hosting provider and ask them to install that piece of software.