Zend Framework php error - php

Were currently trying to host an existing website on a new local server. I'm quite new to zend but have some experience in php.
this is the error code i get
Warning: require_once(../../Statement/Pdo.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/Hg/Zend/Db/Adapter/Pdo/Abstract.php on line 33
Fatal error: require_once(): Failed opening required '../../Statement/Pdo.php' (include_path='.:/Applications/MAMP/bin/php/php5.5.26/lib/php') in /Applications/MAMP/htdocs/Hg/Zend/Db/Adapter/Pdo/Abstract.php on line 33
The pdo.php file links up fine in phpstorm. I haven't a clue whats up with this now.
Any help would be greatful
Cheers!

Related

use scssphp with cakephp

This might be a dummy question now but bevertheless giving it a try: I am just trying to setup scssphp in my cakephp 4 but seem to have a knot in my head. Can anymone shed some light on what I need to do to get it running?
My simple idea was to just include the code below into the app controller initialize function
<?php
require "scssphp/scss.inc.php";
$scss = new scssc();
$scss->setImportPaths("stylesheets/");
// will search for `stylesheets/style.scss'
echo $scss->compile('#import "style.scss"');
And I create the "scssphp" folder structure with the "scss.inc.php" right under webroot:
webroot/scssphp/scss.inc.php
webroot/scssphp/style.php
webroot/scssphp/stylesheets/style.scss
But then I get
Warning (2): require(/scssphp/scss.inc.php): failed to open stream: No such file or directory [APP/Controller/AppController.php, line 84]
Warning (2): require(/scssphp/scss.inc.php) [<a href='https://secure.php.net/function.require'>function.require</a>]: failed to open stream: No such file or directory [APP/Controller/AppController.php, line 84]
Fatal error: require() [function.require]: Failed opening required '/scssphp/scss.inc.php' (include_path='.:/usr/local/lib/php') in /somepath/myapp.com/dev/src/Controller/AppController.php on line 84
Any help is greatly appreciated!
Update: this article describes how to include external classes quite well and helped me in a first step to solve the issue describe above: How can I use my own external class in CakePHP 3.0?

Error when try to run a website in Xampp

I have very basic knowledge of coding, I took a copy of our company's website to practice making changes to it.
But when I try to run it I get this error
Warning: require_once(/var/www/html/classes/database_class_pdo.php):
failed to open stream: No such file or directory in
D:\xampp\htdocs\HJ\top.php on line 10
Fatal error: require_once(): Failed opening required
'/var/www/html/classes/database_class_pdo.php'
(include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\HJ\top.php on
line 10
Please, can someone tell me the issue here?
Thank you.
It's because your php file is trying to open a file named /var/www/html/classes/database_class_pdo.php but cannot find it. Try to see if the path is correct or if the file exists.

Kohana error with utf8.php

Hi I was making app using kohana and I'm getting this error.
Anyone know how to fix this?
Fatal error: require(): Failed opening required '....../system/utf8/transliterate_to_ascii.php' (include_path='.:/usr/share/pear/') in .......system/classes/kohana/utf8.php on line 149
I was trying changin permission on files and nothing works.

Moving Wordpress from Server to Local

I'm trying to move a Wordpress website from a server to my local machine.
After I've transferred the files and database, I'm getting this error:
Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/karryon/wp-config.php): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/karryon/wp-load.php on line 29
Fatal error: require_once(): Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/karryon/wp-config.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /Applications/XAMPP/xamppfiles/htdocs/karryon/wp-load.php on line 29
I'm using XAMPP on a mac and I've tried changing the folder permissions with no luck.
Strange thing is I tried doing the same on a windows machine with Wampserver using the exact same steps and it worked fine.
If anyone knows a possible solution to this problem please let me know!
Thanks in advance,
Amy

php inWarning: include_once error while deploying website

While deploying a php website on wamp server, im getting the Warning: include_once(includes/xyz.php) [function.include-once]: failed to open stream: No such file or directory in C:\wamp\www\x\index.php on line 2
can somebody help?
Read the error message, that was really helpful.

Categories