-
- 805 Posts
I’m having trouble tracking down where the array comes from. The function that contains the rawurlencode is used frequently, so there are a large number of possibilities. Do you have access to your PHP error log files? If so, please could you check to see if they contain a stack trace that might help me figure where the array is coming from? Thank you.
EDIT: Out of curiosity, which versions of MODx and ManagerManager are you using? Thanks.
-
- 156 Posts
I can access the error log, and it seems to me that there’s nothing strange in it...
What do I exactly have to look for?
When I got those errors I was using MODx 1.0.3 and ManagerManager 0.3.8
Yesterday I upgraded to MODx 1.0.4 and atm I didn’t experience the bug.
-
- 805 Posts
For info, I just had a quick try with YAMS 1.1.9 on a local xampp install of PHP 5.1.2 and it seems to work fine too.
-
- 156 Posts
Hi PMS,
just posting to let you know that I encountered the "string as array" parse error also with MODx 1.0.4 and ManagerManager 0.3.8
Cheers,
Roberto
-
- 805 Posts
Thanks for the report Roberto. I’d like to track this bug down if I can. Is it possible to work out from the times of the parser error reports whether these were generated 1) when you looked at the YAMS module interface, 2) when you edited a document or 3) when you (pre)viewed a document? Perhaps you can try and visit each of those locations and see if an error gets added to the log. Cheers.
-
- 156 Posts
Hi PMS,
no errors were added to the log doing the things you listed in previous post.
I think that I get this error with frontend visitors.
Cheers,
Roberto
-
- 805 Posts
Well that rules out some possibilities and lets me know where to start looking. Thanks for investigating!
-
- 805 Posts
I haven’t been able to find the specific bug you mentioned (array being passed when a string is expected). However, on reviewing and testing the url-encoding and decoding I did find another related bug. Fixing this bug allowed me to remove most of the calls to the UrlEncode method. So, if your bug still exists then it should be much easier to track down. I have zipped up the updated code as
YAMS 1.2.0 RC2. If you’re able to test out the updated code at some stage that would be great.
Cheers.
EDIT: Fixed URL and version number. Thanks Sottwell!