Phpcms-verification code error,-the image uploaded by the editor is stuck

Source: Internet
Author: User
Phpcms V9 background login prompt verification code error

After the phpcms V9 verification code is generated, the number of the verification code is saved to the session. By default, phpcms V9 stores sessions in the database.

If a verification code error is reported during logon or comments, you can modify it as follows.

You can try to modify "/caches/configs/system. php" as follows:

'Session _ storage' =>'MySQL',

Modify it

'Session _ storage' =>'Files',

Try again. The above modification indicates that the session is stored in the hard disk, which uses the default PHP storage method.

Phpcms V9 background editor uploads an image and becomes stuck

This is generally the domain name address in the browser and

'App _ path' =>'Http: // XXX. cn/', // Dynamic domain name configuration address

Address is not the same. The solution is to use the same domain name as the address when logging on to the browser.

Or modify it directly.Phpcms/lib/form. Class. phpIn

If ($ allowupload) $ Str. = "filebrowseruploadurl :'".App_path. "Index. php? M = attachment & C = attachments & A = upload & module = ". $ module. "& catid = ". $ catid. "& dosubmit = 1', \ r \ n ";

Encode app_path into your usual address.

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.