Iam trying to implement basic Facebook functionality in my CakePHP project. Iam getting the following error:
I did a bit of digging and turns out /public_html/app/Config/facebook.php is the wrong location for my CakePHP-Facebook-Plugin. My CakePHP is actually located in /public_html/app/Plugin/Facebook//Config/facebook.php funny thing is i just cant get a clue were CakePHP is getting that wrong location.
Also iam using the
CakePHP-Facebook-Plugin ver 3.1.3 (latest)
CakePHP Framework version 2.5.4 (old)
I am also running this on a Hostinger Free subdomain account and some people suggested CURL could be an issue with free accounts BUT it seems enabled on the PHP configuration settings.
SOLVED, Had to move the facebook.php file to app/config/
Related
I have a similar question to the one listed here:
Redirect subdomain to CakePHP action
The difference (I think) is that I have a website hosted on cloud Ubuntu servers and written in CakePHP. What I need to do is redirect:
subdomain.mysite.com --> www.mysite.com/subdomain
I am (no doubt evident from the question) a newbie at these matters, so if changing .htaccess or using mod_proxy etc then please can you explain where to find the files and what code to add (I can navigate around ubuntu, and I have previously used mod_proxy)
Many thanks
I currently have a working Bolt installation on my main domain (i.e. example.com). But I also wanted a subdomain (i.e. blog.example.com).
I created it, but when I uploaded Bolt to it, but when I tried to access it I only got 404 errors.
I tried copying the Bolt installation from the main domain, then only the main page works, but when I try to access the CMS I get a 404 error. Also if I try to access other pages (i.e. blog.example.com/images) I get a 404.
I tried to change the RewriteBase in the .htaccess to all possible things, but no result.
Also if I do it on another hosting company it is just working, does anyone have a suggestion?
Thanks in advance!
if it is working at another hosting company, maybe that is something non-bolt related issue.
I assume that both of them Apache, so after checking file access rights then I would check apache log.
I had the exact same issue and found out that mod_rewrite was disabled on my sub domain.
i want to try new atk4 4.3 version. I know its still in development, but my hands itch ;)
So i found this, and i thought this is good bundle to start with?
https://github.com/atk4/agiletoolkit-bundle
I cloned it and used ./update.sh, but i get this error:
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in C:/Users/wechta/AppData/Roaming/Composer/config.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
But if i remove this lines from composer.json it gets to the end:
"rvadym\/languages":"dev-master",
"rvadym\/x_tinymce":"dev-master",
"rvadym\/blog":"dev-master",
is this the right package to start playing with atk4 3.4, or what im doing wrong? im using all this stuff the first time on windows, so there is a lot of not knowing.. Thank for help!
The bundle is currently not fully available through GIT. If you do want to follow our internal development, then:
http://www4.agiletoolkit.org/
and click download. You can also check periodically:
http://www4.agiletoolkit.org/changes
do you test this url in your application that writted with cakephp ?
www.yourCakephpApp.com/test
you see a page like this:
http://www.eliteprojects.org/cake/app/webroot/test.php
how i can disable test suite?
You access CakePHP's built-in test suite's web runner by going to /yourapp/test.php or /test.php, depending on your server's configuration. Going to /test should give you a 404 error unless you specifically added such a route or a file/path named test in your webroot directory.
You can disable the web runner by denying access to it in your server configurations or by simply removing the file. However, there's rarely a reason to do this, as:
A major part of CakePHP's development platform is its comprehensive testing support. It would be like using CakePHP and removing the bake console.
The test runner is designed to be accessible only during development. So unless you're using a debug mode > 0 in production (which you shouldn't be doing), the web runner won't be accessible from that URL.
Lastly, if you're new to Cake, you need to read the Cake cookbook. Start from the first section, and work your way down to the Blog Tutorial. This will answer most of your questions and avoid a lot of common mistakes (such as your misconfiguring your server's docroot and not having URL rewriting set up properly).
Note:
I've bolded the part about the Cookbook because it is such a crucial resource for learning Cake development, and it's the first place you should consult if you run into any problems or have a question. In fact, people get quite annoyed on #cakephp at new users asking the same basic questions that are already answered in the Cookbook—especially if you haven't done the Blog Tutorial.
It should never happens.
After visiting your main web page, it looks like you are running IIS and your server is misconfigured to run CakePHP project. Cake needs mod_rewrite to work but the htaccess is for Apache server only.
While I'm not very sure how to do this, CakePHP documentation did tell you how to achieve this. Checkout the book here:
http://book.cakephp.org/2.0/en/installation/advanced-installation.html#url-rewrites-on-iis7-windows-hosts
Why cant you comment out the contents of test.php and add header("Location: index.php");
??
Simply delete app/webroot/test.php in your production environment.
i am using Cakephp1.3 on ubuntu 11.10
i create a table name users . i cake bake the application. and user_controller , views and models all are present.
Now when i am trying to acess http://localhost/yps/users/ it gives following error
Not Found
The requested URL /yps/users/ was not found on this server
Anybody have idea about this
Thanks
Please follow the name convention, like #Joseph said
I encounter the same issue, it's caused by mod_rewrite, like #dhofstet said. Fix it, then everything works well. And how to fix it dependes on your web server's configuration. (http://book.cakephp.org/2.0/en/getting-started.html#a-note-on-mod-rewrite)