-
- 3 Posts
I am having problems setting up YAMS locally with MAMP and OSX
in the YAMS module > language tab
Server Name (localhost)
Site URL http://localhost/
i presume this needs to be http://localhost:8888/ but when when i try to edit the url get and error that modx can’t connect with localhost
-
- 805 Posts
The problem is with a regular expression that YAMS uses to validate the server name. It doesn’t allow for a port to be specified.
If you edit class/yams.class.inc.php you’ll find the offending regular expression defined at the top of the file. Please can you try changing it to the following?
define(
'YAMS_RE_SERVER_NAME'
, '(|(?:[a-z0-9]\.|[a-z0-9][-a-z0-9]{0,61}[a-z0-9]\.)*(?:com|edu|gov|int|mil|net|org|biz|info|aero|localhost|[a-z][a-z]|[0-9]{1,3})(:[0-9]+)?)' );
I think that should solve the problem. Please let me know if it does not or if you encounter any other problems related to the port specification. I don’t know if anyone else has run YAMS on a custom port before.
-
- 17 Posts
I am also running MODX 1.0.4 with MAMP Pro. I ran into the same problem but changing the "class/yams.class.inc.php" had no effect. Any other ideas?