CakePHP core could not be found - php

Website given error like as bellow. its build using cakephp. Can you help me
Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /home/tracepk/public_html/webroot/index.php on line 0

View this solution and provide for analyze content of your file index.php

Related

Symfony2 Twig_Error_Loader - Twig doesn't find templates

I look for a while, but don't find a solution. I have a Symfony2 project that I'm trying to deploy. The strcture that I have is this:
/www/my_app/ -> where lives all symfony folders (app, bin, src and vendor) but 'web'
/www/public_html/my_app/ -> this is the 'web' folder renamed to 'my_app'
With this structure I change the routes in app.php:
$loader = require_once __DIR__.'/../../my_app/app/bootstrap.php.cache';
require_once __DIR__.'/../../my_app/app/AppKernel.php';
And I get this error:
Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'The "D:\www\public_html\my_app\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views" directory does not exist.' in D:\www\my_app\vendor\twig\twig\lib\Twig\Loader\Filesystem.php on line 93
Twig_Error_Loader: The "D:\www\public_html\my_app\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views" directory does not exist. in D:\www\my_app\vendor\twig\twig\lib\Twig\Loader\Filesystem.php on line 93
The problems is that that files that Twig are trying to load no lives in "D:\www\public_html\my_app\vendor", but in "D:\www\my_app\vendor".
I hope that you can get the problem. I'm running the app within apache.
Thanks in advance for any comment.
I'm not sure if it would help in your case, but when I want to load twig templates from other directories in controller I run:
$this->get('twig.loader')->addPath('../app');
This is just example how I tell Twig - "I want also use templates from other ../app path".

500 Error when trying to define path to parent directory

I am trying to integrate Wordpress with Question2Answer so that they both use the same database for users. The instructions for doing this are pretty straight-forward. All I need to do is define the directory for my Wordpress installation in the Question2Answer config file. Unfortunately, no matter how I define the path to the Wordpress directory, I get a 500 error.
The urls for the installations are:
Wordpress: http://stage.example.com
Question2Answer: http://stage.example.com/ask
The directory structure is
Wordpress: public_html/stage
Question2Answer: public_html/stage/ask
Definition:
define('QA_WORDPRESS_INTEGRATE_PATH', '../');
I've tried 100 different ways to define the path to the Wordpress directory in my Question2Answer config file and I keep getting a 500 error. I'm fairly certain that I am defining the path to the directory correctly so I think it must be some sort of permissions or .htaccess problem but I'm not sure what it could be. Any ideas?
Here is the error:
PHP Question2Answer fatal error: Could not find wp-load.php file for WordPress integration - please check QA_WORDPRESS_INTEGRATE_PATH in qa-config.php
This might be silly, but keep in mind that the whole define('QA_WORDPRESS_INTEGRATE_PATH', '/PATH/WORDPRESS/'); is in a comment line. So you have to put the */ before the define line.
I was also struggling a lot, until I saw this post

Got Fatal error CodeIgniter CI_Controller not found

I got following error on every controller
Fatal error: Class 'CI_Controller' not found in /<path>/system/core/CodeIgniter.php on line 233
The root folder has also its same separate codeigniter system (all ci structure) folder. the site in root in working but when i copy the another ci structure in sub folder i got mentioned fatal error. please help me.
Check your database config in application/config/database.php it's one of the major time consuming error message I faced with CI. Because the error message was simply misleading. So, check the DB config first.
I had a similar problem when trying to run a migration that is within a folder, it appears that my 'git' is with a conflict in the directory separator.
I was trying to run on command line:
$ php index.php tools/migration
fix it temporarily with the command:
$ php index.php tools migration

Error: application file does not exist

I have installed a new zf project, and get the next error:
Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\zend\public\index.php on line 18
I have set the include path and in addition i have uploaded zf to the library folder.
But, I can't find any trace to a file named Application.php ...
Somewhere along the line you have mixed ZF1 and ZF2 instructions or code. There is no Zend/Application.php in ZF2 (this is a ZF1 thing), and ZF2 apps do not generally have a 'library' folder. So either you are using ZF2 but have followed some app setup instructions for ZF1, or you've used the ZF1 command line tool to create a ZF1 project and have then put ZF2 into the library folder.
Here is the ZF2 skeleton app: https://github.com/zendframework/ZendSkeletonApplication - this should give you an idea what your app should look like.
As the error obviously says Zend/Application.php is not there. Check you include path and your folder.

how do I install this php word censor for phpBB?

I am trying to add a list of words to be censored.
So I found this site
http://www.phpbbsmith.com/projects/phpbb3/word-censor-list.html
that does it for phpBB. I downloaded the file and I put it in my root folder.
I get this error
Fatal error: Call to a member function session_begin() on a non-object in C:\HostingSpaces\SomeName\Site.com\wwwroot\Forum\install.php on line 18
I am not sure what really is happening I don't use php. My current structure is I have an asp.net mvc application that sites in the root. I then made a virtual directory called Forum that holds phpBB and this is where I stuck the install.php file in the root of this virtual directory.
You can't* run PHP code in a ASP.NET MVC application. You will have to find a component that is written for ASP.NET MVC.
*Well... you can, but it's probably not what you want to do: http://www.php-compiler.net/doku.php
root/ in this context (a phpBB mod install) means the root directory of a working phpBB install. Not your server document root.

Categories