I'm trying to implement Square Payment on my website, however it's not working if I'm using virtual environment(square.dev.local)
Error: applicationid and/or locationid is incorrect
I am using XAMPP, and it's perfectly working if I manually move to the path (localhost/square/). square sdk
I tried switching environment from SANDBOX to PRODUCTION and CUSTOM. It doesn't work only in virtualhost local.
When you switched to production did you change the URL to the JS library to https://web.squarecdn.com/v1/square.js as well as location_id and application_id?
Related
I use MAMP for MAC and I had a project on my local. It worked well. I decided to update this project and downloaded from my web server after what localhost shows 500 error.
However, when I enter another localhost projects, it works. I use Codeigniter3 framework. Where can be the problem?
CodeIgniter in the index.php file has options for different environments production and development and supports having subdirectories of the same name in the config folder with different configs depending on the environment. My guess is that the first line of the index.php file says this define('ENVIRONMENT', 'production'); and points to a production database in /application/config/production/database.php (as you downloaded it from a production server) - and as a result you can't connect nor are you getting any errors as by default the production environment serves no errors just a 500 page if something went wrong.
If you don't have different subdirectories for production and development than you just have one config.php and one database.php file in the main config directory. Change the database.php to reflect your local development databasename, password, .etc. and change the environment define to development define('ENVIRONMENT', 'development');.
At the very least you should begin to get errors by changing to development.
Otherwise its a more complex problem to locate.
For me I have been using the 127.0.0.1 it was giving the error but, I am trying it using localhost, it's working properly.
I have a Wordpress 4.5.4 website I downloaded from a remote server to my local development server installing both, the files and the database.
On the remote server is working "apparently OK" but on my local server is doing something strange because on lot of files is doing the following appending:
http://<domain>.com/wp-content/themes/mytemplate/style.css?ver=1.8.4
Notice the version at the end: 1.8.4 while the current version is: 4.5.4
(this situation happens with lot of files)
Then I checked on the server and for these files the version at the end is the right one: 4.5.4
Then on both, on the remote server and on the local development server I read the global variable: $wp_version and on both cases I got the right version: 4.5.4, so I don't know why the 1.8.4 at the end as default version for those files on my local development server?
On my local development server the website looks really different than on the remote server and the files I download as well as the database is the right one, because on the root of the remote directory I put a dummy file and I can read it via the browser using the url. Also, I tried changing the database password on the wp-config.php file on the server and I got database connection error, so the files I downloaded and the database are the right ones.
Any idea on how to solve this?
EDIT 1
Remote server: CentOS release 6.8 / PHP v5.3.24 / MySql v14.14
Local Dev server: Windows 7 / Wamp64 / PHP v7.0.0 / MySql v14.14
EDIT 2
On the local development server I modified the .htaccess file and the Windows' hosts file to use the same domain and avoid the necessity of these kind of changes (and be totally transparent for browsers). I do this with tons of websites, so for me is a normal procedure. Then my problem is not a localhost/domain.com conflict.
The version add in a wp_enqueue_script() or wp_enqueue_style() is an optional value, and is related to the script version.
This value could be add the developper for caching purpose but it is not always corresponding to the WordPress version. The example you show is only relative to the theme and it's certainly hardcoded by the developper (this could be great to show us the wp_enqueue_style() ).
If version is set to false, a version number is automatically added equal to current installed WordPress version. But, some script can check and enqueue different file (I think about for minify css that will not load when you are enqueuing file locally).
In case, verify that both server show the same
get_bloginfo('version');
If not, change your local value with phpmyAdmin.
Hope it gives you some hints.
You need to manually update the siteurl and home options in the _options table and replace your domain with something like http://localhost, and remember to add the port number if you are running it at a different port than the usual 80
I have an existing Kohana 3.3 web application that I moved from a windows/linux environment to a Mac OSX 10.8.4. The application runs perfectly on windows and linux, of course, but I'm having trouble trying to get it started on my Mac.
I'm using MAMP PRO and I have set its configuration to the best of my knowledge. Anyhow, the issue is that when I tried to access the app as https://subdomain.domain.local, the page displays "Index of /" and a list of the directory content of where my index.php file is. However, if I go straight to a controller as so: https://subdomain.domain.local/login, the page works perfectly and I'm able to use the app.
Why is MAMP PRO not able to initialize or run from index.php?
The fix for this was to remove in MAMP PRO the path I had set in the Directory Index text field of the Others tab for my particular host. Here's my setup for running an SSL web app that's placed on another location other than MAMP PRO's htdocs folder:
Under hosts->General, I added my server name (i.e. subdomain.domain.local), checked local name resolution, and SSL, port 443 for Server Setting text box, and Disk Location points to the folder path where your Kohana's index.php file is (also make sure that you have permission's to your web app folder)
Advanced tab: I have the options Indexes, FollowSymLinks checked; and also AllowOverride: All; Order: Allow,Deny; Allow: from all
SSL tab: set the paths to your self-signed certificates for both certificate file and certificate key (if you don't have one, create one using the Create button).
Also, make sure that your ports are correctly set under Server->General. I have Apache 80, SSL 443, MySQL 3306.
That's it. I had other issues with MAMP PRO's MySQL, but that's a different issue.
Code igniter admin module creation issue in wamp server.
This one is working for me in local file and the server path
localhost/site/
but the admin folder is not working in wamp server, the server uploaded files are working and am getting the admin folder.
localhost/site/admin/
This was downloaded from the server for testing purpose, why it is not working in localhost admin folder. Please guide me, how will get rid of this issue.
wampp issue with mode revrite use apache
for those of you who think wampp is a creaton for got to help you make the word better bad news
if you chek google wampp mod_rewrite not working About 254,000 results
and if the url was working on a normal server and not on a local host it has noting to do with codeigniter it has much to do with winshit and xampp.
youse it widout mode rewrite and .htaccess
url/index.php/someign
I have researched a lot for just display 'Hello World' in my zend application.I still get a blank page.I want to run the code in localhost without setting a virtual host.Please suggest a solution or configuration for that.Am having the project in localhost/demoproject.
If you can get your application running with virtual host then simple answer to your question would be.
use localhost/demoproject/public/ as the url. Default Zend projects have their index.php file as project/public/index.php so you will need to use the url above to run the index.php which is the gateway to your framework.
If you are having other errors then make sure you're error display is turned on for development environment or check your error message in error log and post it here.
You should put your zend files on library folder from project...
And go to System Var and set the path to this folder.