-
Notifications
You must be signed in to change notification settings - Fork 77
Problems Incorporating with WordPress #18
Comments
You can try two things. First, manually move config.ini.default to config.ini. Second, on line #65 it should say:
Take out the |
Hey, thanks for the reply. Not sure about the first thing, since config.ini and config.default.ini appear to be identical. Even so, I went ahead and removed config.ini, then renamed config.ini.default to config.ini, at which point I only got the "Please make sure config.ini.default exists before trying to have Detector build the config.ini file automagically." As for the second thing, removing the The weird thing is that line 26 is a comment line: I played around and discovered that somehow the word NO was triggering it. if I remove NO, then the The bad news is that when I got rid of the BOOL_FALSE error, 3 new things pop up:
I was ready to give up, but I noticed the typo "$csstranforms" (should be "$csstransforms"). I hunted that down to line 7 of /config/families.json and families.json.default. I corrected it and all of the notices went away except for a WordPress error: So I finally have a chance to use it! Still some unexpected behavior, but I'll play with it some more and see how it works. In the meantime I may submit a pull request for that typo... |
I put the folders in the root directory of wordpress and included
in the root index file as the first call, I can then use detector in all themes. Not sure if that is right or wrong to put in root, need to remember if updating wordpress but it works for me. |
I didn't have a problem dropping the Detector directory into into my theme and then requiring it from functions.php. Everything seemed to work fine except for an XMLRPC issue, for which I am going to open a separate issue - but I just wanted to comment. |
I know you can't support all possible platforms, but WordPress is a pretty popular PHP based platform, so perhaps you have some ideas.
I did find and try this plugin, which is just a simple wrapper to include, in addition to trying to manually include Detector.
Here is what I found:
Detector WordPress issues
Notes
1) Plugin - As - Is
Warning: Invalid argument supplied for foreach() in /[path_to_wp_install]/wp-content/plugins/detector/lib/Detector/Detector.php on line 77
Detector.php line 77:
```// populate some standard variables out of the config
foreach ($config as $key => $value) {
self::$$key = $value;
}
buildTestPage()
function.3) Manually include latest version from github
https://github.com/dmolsen/Detector/
require_once('library/detector/lib/Detector/Detector.php');
The text was updated successfully, but these errors were encountered: