Not Working ... "unterminated regular expression literal"
WISEOZ - July 2, 2008 - 15:23
| Project: | Spread |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I've deployed this block to my production site and have it on just one node (for testing purposes). I have set all Access Control and configurations as required. I can't seem to get it to really work by sending emails. I'm using Firefox 2.0 (I haven't attempted IE7 just yet) and Firebug shows "unterminated regular expression literal" and "undefinedspread" errors on my node page. You can see for yourself here ... http://www.wiseoz.com/node/3960 (look for the block in the right sidebar).
Is this something you've come across before?

#1
Ok, I figured out what's wrong.
In spread.module replace line 97 which look:
drupal_add_js('Drupal.basePath = '. base_path(), 'inline');with (quotes):
drupal_add_js('Drupal.basePath = "'. base_path() . '"', 'inline');Or just replace spread.module with the attached one, remove "txt" extension of course.
If it works, let me know I'll update the module ASAP,
Jérémy
#2
Wow! Now that's service! I'll have my guy install this later today and get back with you by this evening on the outcome.
#3
We installed this latest version and it corrected the error but it still wasn't sending the e-mails. We determined there is a pathing issue. We created a js sub-directory and moved the js file into it and now it sends the e-mail as expected.
Thanks!
#4
Thanks for your testings.
Fix commited, release 1.1 will arrive in a few hours.
#5
Automatically closed -- issue fixed for two weeks with no activity.