I'm trying to set up my Flex Builder 4 dev environment, up to and including PHP and the ZendFramework on a WAMP stack on my hard drive.
Everything goes swimmingly until I try to set up a data service. I point it to the php class file, it populates the various fields in the form so I know it understood it, and I press next. After a little bit of tweaking I have the ZendFramework installed and everything seems to be pointing the right way, so I'm not sure why I'm getting this error:
"Make sure that Zend Framework is installed correctly and the parameter "amf.production" is not set to true in the amf_config.ini file located in the project output folder.
Warning: include_once(C:\wamp\www\TestDrive-debug\EmployeeService.php) [function.include-once]: failed to open stream: Permission denied in C:\wamp\ZendFramework\library\Zend\Loader.php on line 146"
What could be causing a permissions error like that? It's not on the system level because I went into properties and fully opened that file up so even a basic user has full permissions - still no dice.
I'm not reeeally a PHP guy so this is a bit beyond my skillset. Has anyone encountered this problem before? I'm just following the tutorial I have here and it SHOULD work. I'm just not clear on what would be causing a permissions issue like this.
Thanks!
I resolved this problem by changing the encoding of the php file. There must be some invisible characters in the file that were screwing up the parsing. Try saving the php service file with different encoding and see if it works for you. The one that worked for me was created by eclipse. I copy pasted the code in it, saved, and boom it worked!
just had same issue and resolved same as OP, just resave file with notepad, funny deal, but it happens
inside the folder of amf_Config.ini , create a new file amf_config2.ini , copy the contents of amf_config.ini as it is into amf_config2.ini , now inside amf_config2 double quote the value of parameter webroot (webroot="xxxxx") save ur amf_config2 , open gateway.php which would be also inside the same dir , change $configfile = "$dir/amf_config.ini" to
$configfile = "$dir/amf_config2.ini" , save it and try
Related
I've recently been given the job to move a website from one server to another. This site uses the Cake PHP framework (disclaimer: I've never used Cake before). After I copied all databases and files I am having trouble getting the site to load. It is giving the following error:
Fatal error: Class 'Router' not found in /sitepath/cake/dispatcher.php on line 283
The following code is on line 283: $namedExpressions = Router::getNamedExpressions();
From what I read this error is occurring because App::import('Core', array('Router', 'Controller'));, which is in the same file, is not working correctly. In fact if I var_dump() the App::import line I can see that it returns false. So I can only assume App::import should not be returning false, right? I'm guessing my problem is that something is configured wrong in the Cake config settings, maybe a default path? The only thing I've really changed in the config settings is the database credentials, I've updated them for the new database on the new server. So if someone could point me in the right direction and let me know if I have something configured wrong that would be great. Thanks.
Also, I should note this is using Cake 1.3.
/app/tmp/cache/persistent
This directory contains a bunch of files, one of the files is:
cake_core_core_paths
This file contains a serialized array with information that is automatically "cached" in this file. Some of that information includes default paths. When I initially opened this file I could see some of my default paths were set to the old server. Once I deleted this file, then refreshed the page, a new file was created with the correct paths and everything worked as expected. So basically the problem was App::import could not load the correct file because it was using the wrong file path.
I have cloned a git repo that someone made for a CodeIgniter website. I have a WAMP server set up fine in my computer and it works fine. In the Apache modules I enable the rewrite_module and in the PHP Settings I enable short open tag. I also put my database settings in the application\config\database.php file. After that, I put the CodeIgniter folder in the C:\wamp\www\CodeIgniter folder.
Now the problem is that when I go to localhost/CodeIgniter I get this:
Error: Template Directory Not Found!
I have looked for several hours online for this error but I could not find anything similar. If someone has seen this error before and knows how to solved it I will really appreciate any help or if you could point me in the right direction since I am new to CodeIgniter.
It sounds to me like your app is using a third-party Template library, and a config is incorrect
Search your application dir for "Template Directory Not Found" - that will take you to where the error message is in the code, and you can then figure out what library is calling it. Or, take a look in your application/config - most likely there's a file for it
"Template Directory Not Found" is not part of Codeigniter.
I'm learning php and mySQL for the first time (using Welling/Thomson) and I'm using my mac as the server. In doing so I'm turning on web sharing and accessing it through something like http://192.168.0.103/~myname/ or localhost/~myname/. I'm able to run basic PHP scripts. I set up everything using this guide. I have each example divided into the chapters: to get to the chapter 1 projects I go through localhost/~myname/book/Chapter02/example.html in my browser. These files are actually stored in /Users/myname/Sites/book/Chapter02/example.html
I'm attempting to do file openings and get the following error:
Warning: fopen(/Library/WebServer/Documents/../orders/orders.txt): failed to open stream: No such file or directory in /Users/myname/Sites/book/Chapter02/processorder.php on line 72
I first thought that it was because the directory and the fopen were different, so instead of storing my files in localhost/~myname/, I tried localhost/public_html/ Storing them there is actually /Library/WebServer/Documents/public_html/ on my computer. I still get the error:
Warning: fopen(/Library/WebServer/Documents/../orders/orders.txt): failed to open stream: No such file or directory in /Library/WebServer/Documents/public_html/Chapter02/processorder.php on line 72
Then I looked it up online and saw that it had to do with permissions. I created a directory in /Library/WebServer/Documents/public_html/Chapter02/ called "orders" with read & write permissions from everyone through the terminal (done with chmod), but still I get the same error. I'm not sure where the problem is. If it is my server set-up, where are the files? Any help would be greatly appreciated.
Here is the php script if you think it will help http://pastebin.com/14gpim8e
I'm trying to be as clear as I can, but I'm sure this will need some clarification so feel free to ask if you need any more information.
Found the answer.
The problem came in 2 ways:
finding where the file was supposed to be, and
permissions.
In this case, it needed read/write permissions from everybody, and it needed to be in the /WebServer/ directory and no lower (as I had been doing in every single directory but the WebServer one. Seems kind of dumb now that I couldn't get it). Thank you all for your help.
All of a sudden, my SMF powered forum has stopped working.
In fact, PHP files no longer seem to want to open on my website. I tried uploading a blank PHP file with just a few characters of text, and it refuses to open giving the error below.
I also tried a PHPinfo file, which didnt work, giving the same error. Other sites on the same server are working.
Fatal error: Unknown: Failed opening required '/home/users/a/n/mysite/www/index1.php' (include_path='.') in Unknown on line 0
Any ideas about whats gone wrong?
Just an idea. As it happens to all php files that could to what i know only mean 2 things.
Either there is somekind of error on the php extension.
OR what it most likely is, is that SMF uses a .htaccess to make user friendly links. Which means all requests to the server no matter what (Unless specified in the .htaccess) will be sent to index.php and then be handled.
So if there is a error in the index.php or the library of some sort it would explain why no matter what php file you're looking at it gives the error.
-
One thing you could do is to take a backup of all your images in the system. Then try to install a fresh version on your local machine. Once done copy/past the images back and copy all the current php files for SMF and replace the current ones on your host with them.
-
Haven't used SMF much so I'm not sure this is the solution at all. But to me it sounds like a solution.
It seems you have broken your root document.
do chmod 755 index1.php
and it should solve the problem.
You should check the php.ini or php5.ini file. I don't believe the single ticks around '.' for the include_path are valid. Double quotes will work however.
It seems you have been hacked:
http://wordpress.org/support/topic/fatal-error-unknown-failed-opening-required-google_verifyphp
Ahh sorry reread the question. I guess this is what you may try.
Check your file permissions. by default if your web server can not read files thats what you are going to get. I could be wrong but worth having a look
so just chmod your root folder to say 755 atleast
Greetings ! I have a project that has php index.php file in /htdocs. Also include files like dboperaitons.php, config.php and css file also in /htdocs/themes. Now I set up New site in dreamweaver opened the index.php file, it is running fine , but when I click on properties and ry to add or modify css property from dreamweaver, it gives me error saying unable to open file http://localhost/themes/en.css file because it is not found in the hard disk.
1. Why is it searching for file as http://localhost instead of c:/xampp/themes.
2. It says en.css file is remote file and cannot be edited.
How can I resolve this. Please guide.
you can fix this problem by browsing the file manually from its location.
When you define a site in Dreamweaver you need to make sure you set up both the local and remote locations in order for it to know where files are. It sounds like you have not defined the local site folders properly and DW is confused about where things go.