| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Unable to load YAML file | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Unable to load YAML file
I am working on developing a new module so that a customer of ours already using X-Cart can use our payment system. I am following the tutorial in Webinar 3, running xcart under Apache on a Mac -- Yosemite.
When I try to use the load-yaml.php script I get the following: PHP Catchable fatal error: Argument 1 passed to XLite\Core\Database::detectDirectives() must be of the type array, null given, called in /Library/WebServer/Documents/xcart/var/run/classes/XLite/Core/Database.php on line 803 and defined in /Library/WebServer/Documents/xcart/var/run/classes/XLite/Core/Database.php on line 1274 Any ideas what this is? My install.yaml file is the same as webinar 3 example (before the settings are added) but with my classes listed instead. I can provide more data if necessary. Thanks!
__________________
-Derek Buckley Developer, Identity Mind Global |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Unable to load YAML file
Hello Derek,
It looks like there is an error in your yaml file - for some reasons the script can't parse it.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: Unable to load YAML file
It seems the inability to parse the install.yaml file was from some unprintable characters (don't know if tabs or spaces must be consistent).
I made a new copy of the example file from Webinar 3 and replaced the module name with mine and it worked. I was using PHPStorm to create my files, and the editor tries to show an outline of the entries in the yaml file -- my file the indicators were not always present but in your sample file they were. Something in the "white space" was different.
__________________
-Derek Buckley Developer, Identity Mind Global |
|||||||
|
#4
|
|||||||||
|
|||||||||
Re: Unable to load YAML file
Another thing to check is quotes - sometimes I have to go through all the source code (that was copied&pasted) and replace quotes with their correct ' and " versions manually.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|