Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Can't Retrieve Configs by Name (2 Comments)

$
0
0

Topic by Mike Waldron

Here's a new wrinkle. When I try this in a file manager custom script on a May 2017 site

$this->val = RNCPHP\Configuration::fetch('CUSTOM_CFG_VALID_CONFIG_NAME')->Value;

I get the error Invalid ID: No Configuration record found with LookupName = '(1000004)' If I change that line of code so it reads

$this->val = RNCPHP\Configuration::fetch(1000004)->Value;

then it works fine, and I get the expected value. Has anyone run into this before? Why would the config name not be an acceptable value to fetch()? The config name is copied-and-pasted, so I'm not misspelling it. I've tried it with single and double quotes just for the heck of it, but nothing seems to work.


Viewing all articles
Browse latest Browse all 2504

Trending Articles