YII error base/CComponent. php (616): eval () & #39; dcodeonlin

Source: Internet
Author: User
The school's adjustment and suspension system is running well. Today, something suddenly went wrong! The error "undefinedindex50baseCComponent. php (616): eval () dcodeonline1" is not an inexplicable error? After checking for a long time, you can understand it! Generally, errors related to eval () should be

The school's adjustment and suspension system is running well. Today, something suddenly went wrong! Error: undefined index 50 base/CComponent. php (616): eval () 'd code on line 1 I 've been depressed for a while. Isn't this an inexplicable error? After checking for a long time, you can understand it! Generally, errors related to eval () should be

The school's adjustment and suspension system is running well. Today, something suddenly went wrong!

Error:

Undefined index 50

...... Base/CComponent. php (616): eval () 'd code on line 1

I have been depressed for a while. Isn't this an inexplicable mistake?

After checking for a long time, you can understand it!

Generally, errors related to eval () should be caused by the use of strings instead of using strings!

The values in the CGrid of YII must be strings.

So I changed the value of each column to a fixed value without any error!

Then the exclusion of one field is finally locked on one field. The original field needs to replace the numeric representation of the database with a friendly text display. After adding 50 corresponding array elements, the error is eliminated!

Summary errors related to eval () are mostly irrelevant to strings!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.