Part way through hols. Back on 26th. Just thought I would check in and see how its going. Quite a bit by the looks of things. Let me see if I can quickly sort some things out...
@Frank. If your installation is in a subdirectory on your server then you need to specify that under Yams > Other Options. There’s a special setting. You’ll have to update your .htaccess afterwards.
@mikefluff. I have never used Weblogin with YAMS before. There is a setting under YAMS > Other Options that allows YAMS to accept standard MODx URLs for specified documents. Weblogin might work if you specify the id of your login document (or just use *). I can look into YAMS-ifying it when I get back. However, I looked at the Weblogin code quite a while ago back and it wasn’t very pretty. I’d much rather YAMS-ify WebloginPE.
@pepebe. Try wrapping the function definition for php_file_tree like so
if ( ! function_exists( 'php_file_tree' ) ) { function php_file_tree(...) { ... } }
That way it will only get defined once. I’ll have to look at the forwarding issue for unpublished documents when I get back.
@Frank. What do you mean by ’your site would be unavailable’. Were you getting a page not found error, server not found error or blank page? If you are loading a page once and it works, but twice and it doesn’t, then it may be a YAMS caching problem. The first time you access the document it generates it from scratch and caches some of it. On subsequent loads it starts with the cached version and builds from there. Perhaps the cached version is getting corrupted. You might be able to get around the problem temporarily until I have time to investigate further by making that document uncacheable. If you are using PHx you could try removing the PHx from that page in case it’s a PHx-YAMS compatibility problem.
@prouve. Thanks for the clear bug report. That’ll could save me quite a bit of time and make it easier to fix. Please can you send me a personal message with the SQL error. When I get back from hols I’ll look into fixing the bug.
@mgbowman. Welcome back. I recommend using the most recent version of ManagerManager from the MODx repository. You might get a shock if you look at the code now. Your original multilingual URL code has almost transformed out of all recognition. For the record, a link to the latest development version of YAMS is always provided on the top post of this forum.
@manu. Thanks for helping out.
Hope I didn’t miss anyone out.