Last Modified: 10.09.2014
Cannot Find Component Call Code
There are various reasons to this error:
- Component call code is not placed between separate
Solution: Check separation of the component code from another php code on the page.
I.e. if you have php code on the page like this:
it will return an error.
The code shall be written as follows:
- Errors in html code on the page.
Solution: Check the validity of the html code.
- Inconsistency of file encoding with the project in general.
Solution: Check the encoding. A quite versatile solution is to write the following strings in the file .htaccess:
For the website with the windows-1251 encoding:
php_value mbstring.func_overload 0
php_value mbstring.internal_encoding cp1251
For the website with the UTF-8 encoding:
php_value mbstring.func_overload 2
php_value mbstring.internal_encoding utf-8
- Inconsistency between file the owner and user under which the system edits the files.
Solution: Check the user’s rights.