SyntaxError: unexpected token < in JSON at position 868 + Opencart + Centos VPS - opencart

Suddenly showing error :
SyntaxError: unexpected token < in JSON at position 868
enter image description here
This error is even with the new plain installation fo opencart 2.3 X using softacolous from cpanel.
i have centos VPS server. Also joomla is showing same type of error when java script is minified and compressed using one premium extension.
Also i have noticed that map any analytic in opencart dashboard is not working.
Also also occurs while viewing order, setting etc.
requested to help me.

Related

CKFinder3 sys_get_temp_dir not working in Linux? using apache 2.4 AWS

I was able to setup working ckeditor/ckfinder plugin on my local
However when I tried to move the project to AWS ckfinder suddenly is not working anymore.
I suspected it's because on the temp directory on config.php
$config['tempDirectory'] = sys_get_temp_dir();
Here's the error on AWS ec2
UPDATE
Invalid Request Error and when I tried to inspect element it says
Invalid request shows up when I try to click this icon

Facebook login failed: "fbauth2:/" - error: "This app is not allowed to query for scheme fbauth2 iOS 13, Xcode 11

I recently came across an issue with Facebook Login after updating to iOS 13 and Xcode11. Login worked fine, all doc configuration is correct but two of my apps have this error now.
-canOpenURL: failed for URL: "fbauth2:/" - error: "This app is not allowed to query for scheme fbauth2
There is a similar question but it relates to iOS 10, and the issue clearly states that the info.plist configuration was incorrect, which is not the case here.
-canOpenURL: failed for URL: "fbauth2:/" - error: "This app is not allowed to query for scheme fbauth2" (OSStatus error -10814.)
Upgrading to the current FBSDK should resolve the problem. iOS 13 requires the implementation of ASWebAuthenticationPresentationContextProviding, which was not available until FBSDKCoreKit 5.4.
FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m was modified to support iOS 13's requirement to implement ASWebAuthenticationPresentationContextProviding in FBSDKCoreKit 5.4. (The current version is 5.8.) Versions prior will no longer work.
The needed change is posted here: https://github.com/facebook/facebook-ios-sdk/commit/6b061099f339ef0e8bde2e2c2163ef5a3c1b8340#diff-72593591275d63edfb1bfad837e4c32f
I was unable to upgrade due to a dependency with AWS, but I was able to patch the 4.42 version of the file based on the differences in the diff above.
The error -canOpenURL: failed for URL: "fbauth2:/" - error: "This app is not allowed to query for scheme fbauth2 was a symptom of the FBSDK attempting to open Facebook, which was not installed, so it was just a warning before it would fall back to browser-based FB auth.

reactjs error - AJAX Failed: SyntaxError: Unexpected token < in JSON at position 0

I get the following error on the console for running the reactjs application.
AJAX Failed: SyntaxError: Unexpected token < in JSON at position 0
on the developer tools console window. I got the following error.
search-e3e9d0f9da88f042e3cb.js:446 Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering.
Instead, figure out why the markup being generated is different on the
client or server:
(client) " data-reactid="18">Medium</div><button
(server) " data-reactid="18">Large</div><button s
It is wagtail application(it is like Django-cms), in which react module is called inside the wagtail application. The development environment is Ubuntu on aws.
Please help me in resolving this issue. I am not able to find the origin of the error.
It looks like your JSON is not valid, try jsonlint.com

Django Auth LDAP - NO_SUCH_OBJECT

Today out of the blue my WEBApp started failing in the login. I am authenticating the users against LDAP. The Web App is hosted on a Windows 2003 Server with Django 1.6.1 and Apache 2.2 and mod_wsgi.
The error is
ERROR : 18/02/2015 01:52:17 PM : result(3) raised
NO_SUCH_OBJECT({'info': "0000208D: NameErr: DSID-031001CD, problem
2001 (NO_OBJECT), data 0, best match
of:\n\t'OU=EU,DC=osud,DC=corp'\n", 'matched':
'OU=EU,DC=cosud,DC=corp', 'desc': 'No such object'},)
I checked on http://docs.oracle.com/cd/E19957-01/816-5618-10/netscape/ldap/LDAPException.html#NO_SUCH_OBJECT and it says this
NO_SUCH_OBJECT
public static final int NO_SUCH_OBJECT
(32) The entry specified in the request does not exist.
At http://www.python-ldap.org/doc/html/ldap.html it says this
exception ldap.NO_SUCH_OBJECT
The specified object does not exist in the directory. Sets the matched field of the exception dictionary value.
But none of these realy apply in the situation. And after like 2 hours the login started working again. There was a restart of Apache Server in between but not sure if that can contribute to this.
What else can i do to get to the bottom of this issue? Any more logging that can be added to get more information?
I had the same problem and it was related to my base DN: OU=name,dc=some,dc=random,dc=organization
The CN of my OU got changed and my python script started to show the same error message:
ldap.NO_SUCH_OBJECT: {'info': "0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of:\n\t'DC=some,DC=random,DC=organization'\n", 'matched': 'DC=some,DC=random,DC=organization', 'desc': 'No such object'}
Try running the query using some LDAP client (ldapsearch and Apache Directory Studio are my favorites) and compare the results.
I hope it helps,

Rails 4.2: Internal Server Error with Maximum file multiparts in content reached

Just upgraded to Rails 4.2 and I get Internal Server Error on localhost and in production when trying to edit a model with multiple has_many objects. This is the message I see on the rails s console
!! Unexpected error while processing request: Too many open files - Maximum file multiparts in content reached
The request does not even get to the controller i.e., I DO NOT see the usual following lines in rails s console
Started GET "/feeds/3/edit" for 127.0.0.1 at 2015-01-04 20:07:19 -0800
Processing by FeedsController#edit as HTML
......
......
Any clues?? Using Ruby 2.1.5 upgraded to 2.2 with no luck.
It looks like the multipart limit was added in the Rails 4.2 version of Rack (https://github.com/rack/rack/commit/b0b5fb9467e6ed777d3eaf35afc81d758e308aab). The default is 128, which may be too little for your purposes, it was for mine. Setting the value to 0 in an initializer removes the limit and fixes the problem:
Rack::Utils.multipart_part_limit = 0
I would suggest tailoring the value until it fits your needs so your server doesn't run out of file handles. My app uses a massive form and setting it to 512 seemed to work for me.
You can also pass a Environment variable to the app, as you can see here(https://github.com/rack/rack/blob/8d21788798b521b97beb10047ebf593ddc0aaed2/lib/rack/utils.rb#L75).
RACK_MULTIPART_PART_LIMIT=0 rails server
It looks like there is a bug in Rack 1.6 where all HTML input elements get counted as an open file in a multipart form. As others point out, you can change the limit to 0 to disable the feature, or bump the limit.
https://github.com/rack/rack/pull/814