Unexpected Token on register customer

Discuss everything related to Business Directory. All versions. Any questions related to the Business Directory developing or using should be posted to this forum.

Moderators: ne_moj, zewa

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

Unexpected Token on register customer

Postby paragate » Dec 10th, '16, 12:48

hi

How come i got this "Unexpected token < in JSON at position 0"?
its a new installation of ubusinessdirectory just bought it and tried to register a new test customer
and get this error?

regards
Attachments
errorimage.png
errorimage.png (24.45 KiB) Viewed 632 times

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Unexpected Token on register customer

Postby ne_moj » Dec 12th, '16, 09:30

Hello Henrik

The problem in submitted parameters via ajax. Perhaps there is an error in the code or for any reason page can not be found. Henrik, please, give a link to a page where you can see the problem.

Regards

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

Re: Unexpected Token on register customer

Postby paragate » Dec 12th, '16, 17:10

After i removed the new mvc framework and replaced with that which comes with ubusiness i was able to register a test customer.

mdony
Newbie
Newbie
Posts: 6
Joined: May 28th, '17, 04:42

Re: Unexpected Token on register customer

Postby mdony » Jun 8th, '17, 01:46

it also happend on Shopping Cart,
could somebody help me what should be done ?
"unexpected Token S in Json at position 0"
when customer registers
Attachments
Screen Shot 2017-06-08 at 8.10.55 AM.png
Screen Shot 2017-06-08 at 8.10.55 AM.png (198.68 KiB) Viewed 432 times

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Unexpected Token on register customer

Postby ne_moj » Jun 8th, '17, 09:42

Hello mdony

Do you have the opportunity to give a link to the site where this error is observed?

mdony
Newbie
Newbie
Posts: 6
Joined: May 28th, '17, 04:42

Re: Unexpected Token on register customer

Postby mdony » Jun 8th, '17, 15:27

Hi ne_moj

I've sent the URL to your PM Box.

The User is actually successfully registered, the email notification is sent, the record is shown in the shoppingcart customer menu

Later I'll summary the fix here , so that other can see

best regards

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Unexpected Token on register customer

Postby ne_moj » Jun 9th, '17, 14:42

Hi

Ok. Thanks.

administrator
Site Admin
Site Admin
Posts: 5938
Joined: Jan 7th, '09, 23:18
Contact:

Re: Unexpected Token on register customer

Postby administrator » Jun 11th, '17, 18:26

Check you have following in your .htaccess file:

Code: Select all

<IfModule mod_rewrite.c>
    RewriteEngine On
   
   # Exclude images from rewriting rules
   RewriteCond %{REQUEST_URI} !(\.gif|\.jpg|\.jpeg|\.png|\.bmp)$ [NC]
   # Exclude css files from rewriting rules
   RewriteCond %{REQUEST_URI} !(\.css)$ [NC]
   # Exclude Javascript files from rewriting rules
   RewriteCond %{REQUEST_URI} !(\.js)$ [NC]

   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-l
   
    # Rewrite all other URLs to index.php/URL
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>


Return to “ApPHP Business Directory / uBusinessDirectory Talk {developers/users}”