unm-art / wms-labeling Goto Github PK
View Code? Open in Web Editor NEWCustom application to add label printing capabilities to OCLC's WMS system.
License: MIT License
Custom application to add label printing capabilities to OCLC's WMS system.
License: MIT License
We have installed WMS-Labeling on a Linux server running PHP 7.4.20. We have a WSKey for a production environment and we have set up the configuration file correctly as far as we can tell. The message we receive when we enter a barcode for an item in our collection is: Could not get results. Any help you could offer is greatly appreciated! AMNH Library Staff
config.php file contents below:
//Base folder, if any. Leave blank if site is in root web folder.
$base_url = '/labeling';
$site_title = 'AMNH WMS Labeling';
//Default page title
$page_title = 'AMNH WMS Labeling';
/*
if (defined('WSKEY') === FALSE) {
define('WSKEY', 'our production wskey');
}
if (defined('BIBKEY') === FALSE) {
define('BIBKEY', 'our production wskey');
}
if (defined('SECRET') === FALSE) {
define('SECRET', 'our production secret');
}
if (isset($inst_id) === FALSE) {
$inst_id = '86441';
}
if (defined('PRINCIPALID') === FALSE) {
define('PRINCIPALID', '8eaa9f92-3951-431c-975a-d7df26b8d131');
}
if (defined('PRINCIPALIDNS') === FALSE) {
define('PRINCIPALIDNS', 'urn:oclc:wms:da');
}
if (defined('URL') === FALSE) {
define('URL', 'https://circ.sd00.worldcat.org/LHR');
}
if (defined('BIBURL') === FALSE) {
define('BIBURL', 'http://www.worldcat.org/webservices/catalog/content');
}
if (defined('METHOD') === FALSE) {
define('METHOD', 'GET');
}
if (defined('BODYHASH') === FALSE) {
define('BODYHASH', '');
}
After clicking "Make Labels", I get "Please check your config.php file. Your Wskey is invalid".
But in config, it's my valid wskey and secret.
What else could lead to this error ?
Thanks,
Patrick
I receive the following response when generating a label:
Please check your config.php file. Your URL may be invalid.
Curl Error - 27 - SSL: couldn't create a context: error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed
Running: Ubuntu 16.04.3, NGINX 1.10.3, PHP 7.0.22
The code in this repository no longer seems to work, perhaps because of recent fixes to the way it authenticates. When I run it and try a barcode in the web form, I get this error :
127.0.0.1:38020 [500]: /inc/fetch_labels.php - Uncaught InvalidArgumentException: Required option not passed: "access_token" in /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Token/AccessToken.php:62
Stack trace:
#0 /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(746): League\OAuth2\Client\Token\AccessToken->__construct(Array)
#1 /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(544): League\OAuth2\Client\Provider\AbstractProvider->createAccessToken(Array, Object(League\OAuth2\Client\Grant\ClientCredentials))
#2 /home/ldeck/newlabeltest/WMS-Labeling/inc/fetch_labels.php(89): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken(Object(League\OAuth2\Client\Grant\ClientCredentials), Array)
#3 {main}
thrown in /home/ldeck/newlabeltest/WMS-Labeling/vendor/league/oauth2-client/src/Token/AccessToken.php on line 62
Cameron,
Hope things are going well for you.
If you still get these, can you please turn over ownership of the unm-art organization and the WMS-Labeling repo to me, please?
Thanks!
Jonahlyn
During php composer.phar install on Ubuntu 16 running PHP 7 I got:
package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.