Dream notification: Fatal error: Call to a member function read ()

Source: Internet
Author: User

File Manager error in Zhimeng 5.7: file_manage_main.htm on line 24

Error message:

Fatal error: Call to a member function read () on a non-object in ......templetsfile_manage_main.htm on line 24


What is the answer from the Zhimeng official help center?

A: One possibility is that the SQL statement sent is too long and exceeds the size of max_allowed_packet. For this reason, you only need to modify my. cnf and increase the value of max_allowed_packet.

A: We recommend that you:

1. (website path) check whether there are any Chinese characters and spaces, which will affect both;
2. Check whether the directory is restricted by php. ini or php_admin_value.
3. Determine whether the dir function is supported.
4. dede cannot be installed in virtual directories.

However, this method may not work here. I have experienced it myself, if this problem occurs, you only need to delete the content in the DedeCMS installation directory in the background-> System-> Basic System Settings-> core settings. If you install the content in the root directory

But I still cannot solve this problem. Then gg

There is no problem with viewing the website subdirectories. This problem occurs only when it is returned to the root directory of the website,This is probably because of permission issues.Solution.

Solution:

You can solve the problem by giving the directory browsing permission to the upper-level Directory of the root directory folder of the site.

For example, if all your site folders are under webroot, you can grant the webroot directory browsing permission.


Okay. If none of the above solutions can solve your problem, try.

Manual solution :,Find index_top.php in the management directory and find96 rowsFind the following code:

The code is as follows: Copy code

<Li id = 'd10'> <a href = "javascript: OpenMenu (10,'', 'File _ manage_main.php? Activepath =/templets ', 10) "> Template management </a> </li>

Changed:

<Li id = 'd10'> <a href = "javascript: OpenMenu (10,'', 'File _ manage_main.php? Activepath = <? Echo $ cmd_cmspath?> /Templets ', 10) "> Template management </a> </li>

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.