To post a new support question, click the Post New Topic button below.
Current Version: 4.8.5 | Sytist Manual | Common  Issues | Feature Requests

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Square Checkout 404 Error

188 posts
Mon Jul 25, 22 5:24 PM CST
I am having issues with my new instance of Sytist. My Squareup checkout is not working. I have activated the token and data info. Also, have HTTPS on site and an SSL check box selected. The config file also is HTTPS.

When cust gets to the product page, you select your options, when you click to check out it goes to 404 error.
PHP 7.4

.htaccess file

ErrorDocument 404 /404.php
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(apvisions.com)$ [NC]
RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L]

sy-config.php

$setup['path']= dirname(__FILE__);
$setup['url'] = "https://".$_SERVER['HTTP_HOST']."";
Edited Mon Jul 25, 22 5:26 PM by Arron Robles
Arron Robles, Solutions Designer | APVisions.com | Robles365.com
16,148 posts (admin)
Tue Jul 26, 22 5:49 AM CST
I am going to guess it is going to indexnew.php which means you haven't clicked the go live link in the header of the admin. Doing that will fix it.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
188 posts
Tue Jul 26, 22 9:10 AM CST
Tim. Both are checked as active.
Attached Photos

Edited Tue Jul 26, 22 9:11 AM by Arron Robles
Arron Robles, Solutions Designer | APVisions.com | Robles365.com
16,148 posts (admin)
Tue Jul 26, 22 9:49 AM CST
Nothing to do with Square. Re-read my reply.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
188 posts
Tue Jul 26, 22 9:51 AM CST
Thanks Tim. I don’t not have a go live in the admin header. Can’t I run a script for it?
Arron Robles, Solutions Designer | APVisions.com | Robles365.com
16,148 posts (admin)
Tue Jul 26, 22 10:19 AM CST
Does the Sytist homepage work? What is the link?
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
188 posts
Tue Jul 26, 22 11:51 AM CST
Yes, page is good.
https://www.apvisions.com/_app/
Arron Robles, Solutions Designer | APVisions.com | Robles365.com
16,148 posts (admin)
Tue Jul 26, 22 12:18 PM CST
Is there a password to a gallery so I can test?
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
188 posts
Tue Jul 26, 22 1:13 PM CST
I sent you a login, so you can that a look. Labeled APVisions Login.
Arron Robles, Solutions Designer | APVisions.com | Robles365.com
16,148 posts (admin)
Tue Jul 26, 22 2:04 PM CST
The code you have in the .htaccess file to force httpS is causing it to lose the /_app/?view=cehckout part:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(apvisions.com)$ [NC]
RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L]

And in combination, you had a fixed URL in the SSL section which you don't need and makes it change from https://www.apvisions.com to https://apvisions.com which causes it to lose the session cookies. 

I replaced the code in the htaccess file with the following and removed the fixed SSL link which has fixed it:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
188 posts
Tue Jul 26, 22 2:22 PM CST
@Tim, thank you for digging in. I really appreciate it. Have a great week!
Arron Robles, Solutions Designer | APVisions.com | Robles365.com
11 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 693 times
Category: Payment Options
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close