So im trying to build a link using cakephp, here is the code im using:
echo $this->Html->link('FAQs',array('controller' => 'faqs','action' => 'index','full_base' => false));
and the link path im getting back is:
http://mysite.co.uk/websites/123reg/LinuxPackage25/ho/me/tr/mysite.co.uk/public_html/faqs
Im using a linux based hosting.
Has anyone experienced this before? or is able to offer some help.
thanks
First of all the problem isn't related to your use of full_base as it defaults to false anyway and should give you:
/faqs
The issue you seem to be having is that http://mysite.co.uk/ is not pointing to the root directory public_html. If you have acccess cPanel i.e. have login credentials for accessing your webhosting and root SSH access, have a look at this blog post and scroll down to Changing Primary domains:
http://blog.servint.net/2012/03/30/the-tech-bench-changing-a-document-root-in-cpanel/
Related
I see other topics regarding this issue, but following their advice has not helped my particular issue.
I have tried following the https://create-react-app.dev/docs/deployment/ documentation on the github pages section. It didn't work the first time, so I thought maybe I did something wrong. So, I also did a hard reset, and started back over and tried it again.
Yesterday I published my calculator project to git hub pages. I then deleted it because someone told me I wouldn't be able to post a dynamic site on there. Well I later found out that a simple calculator is not dynamic site because its not accessing a server. So, I decided to try and post it to gh pages once again. Once again, the gh page is showing a blank page. Apparently this is a common issue.
the gh page link: https://benjamin-wofford.github.io/Purple-Calculator/
and the repository link: https://github.com/Benjamin-Wofford/Purple-Calculator/tree/gh-pages
Please help guide me so that I can get my calculator up on the internet
My manifest.json file somehow was built using HTML code. So, I switched out the code with the actual manifest.json file that was on my local repository, and it fixed the issue.
First time Firebase user. I've recently deployed my website on Firebase which works fine on Chrome on my laptop, however it doesn't show up when I use other browsers OR when I access it on another device even on Chrome. I found this particular article that had a similar issue (Firebase hosted website won't load (but loads locally)), tried implementing the suggested changes but still didn't work.
I use ReactJS with create-react-app, ran npm-run-build before runningfirebase deploy . I made sure the 'public' folder points to 'build' in the firebase.json file. I've attached the image of the console I get when on Opera: Console Snapshot
I've also emptied my cache as well in case it was a cache issue.
My project is in the following github: https://github.com/tchan90/My-Pet-Infosheet
My website url is: https://my-pet-info-sheet.firebaseapp.com/
Any help or suggestions will be much appreciated!
It looks like this should solve your problem
window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() : f => f
One detail to fix (can't tell if it's the issue): you are initializing Firebase two times, and with different settings each time. Keep just one, preferably using the most recent library release, and check that the project settings are the correct ones, there is also another error that says API key not valid.
I have an app developed with CakePHP and it is working just fine on my local machine. Now, I wanted to develop another app with CakePHP. I installed cake in a different folder, configured vhost and server block and did everything like for the first app. I created an empty app, just basic controller and view and when I type the address for the second app I get the first app!!! Weird thing is that all links are working and when I click I get in browser url like secondapp/companies but the content is firstapp/companies. Once more, the second app is empty, no controllers, views and models, just a basic one. Then I did all that in htdocs, and the same problem occurs (none of the apps wasn't in htdocs, but in folders on E partition).
Can someone please give me some help before I kill myself?
Thank you...
If the problem is not on the database configuration, maybe cache problems ? Try it on a private browser/incognito ?
Trying to add Facebook login / registration to a site I'm working on.
Been following this tutorial http://www.startutorial.com/articles/view/34
After some tweaking (because I'm on CakePHP 2, while the tutorial is for 1.3), I managed to get it to run. (Basically I just need to pull the plugin from the branch)
Now, I'm having issues with 2 things:
How do I save the information? Right now, after I login, I just come back to the same page but instead of the Login button, it says "Teepusink is using ThisApp"
Also some of the documentation doesn't seem to match with the branch version. For example,
Facebook->registration(); ?>
is giving me an error. Should I even be using the branch version? Or how do I go about using the plugin for CakePHP 2?
Thank you,
Tee
Got this to work actually.
So I went into ConnectComponent.php, and noticed that somehow the User model isn't being "recognized" there.
Took a little digging, but this is what I did.
'Facebook.Connect' => array('model' => 'User')
Hope this helps someone.
I recently install a drupal for the first time.
Up to now all was pretty good.
But now i can't go on the admin zone.
When I want to go on any section I have a link to Dashboard display on each page.
Moreover when i want to logout I've an Internal Server Error
Have you an idea to resolve this problem ?
Thanks
I'm not completely sure what problem you have, if you are logged out and do not have a login block, you can go to /?q=user or /user and then go to /?q=admin or /admin. If this is not the problem, in general with these kind of issue you can try the following:
Disable any themes you might have activated ([drupalroot]/sites/all/themes/). Just rename the directory of the theme (mv yourtheme/ yourdisabledtheme/) and see if that solves things.
Disable the .htaccess file in the root of your Drupal install (it's hidden, so you need to do an ls -la to see it) by renaming it (mv .htaccess .htaccessdisabled) and see if this enables you to get into admin.
of course, rename them back afterwards. Good luck!