Hello, with the Amazon Store module enable, I've got these warnings below on my /admin/build/translate page.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
warning: preg_match() expects parameter 2 to be string, array given in /home/jdscreat/www/includes/bootstrap.inc on line 777.
Comments
Comment #1
junro commentedsee my original post of July 20, 2009
warning: preg_match.... bootstrap.inc on line 771 with /admin/build/translate page
Comment #2
rfayYes, this is due to amazon_store implementing hook_locale() by accident.
Please try out this patch.
Comment #3
junro commentedThe patch doesn't seem to work.
See the screenshot of it in attached file.
Comment #4
rfayThe patch needs to be applied in the amazon_store directory, and it needs to be against the dev version of the module. Could you try that? And if you have trouble, attach one or two of the .rej files.
Comment #5
junro commentedI did it and I'm using the dev. version.
I give you the .rej files:
amazon_store.locale.ca.inc.rej:
amazon_store.locale.us.inc.rej:
amazon_store.locale.fr.inc.rej:
If you need more rej files, let me know ^^
Comment #6
rfayWell, your .rej files don't show anything wrong.
Is your patching technique one that you're confident in, that you've used before?
(Is it cygwin, using patch -p0
This actually will solve the problem. You can apply the changes to the individual files by hand if you want. Just change all amazon_store_locale to _amazon_store_locale. That's all the patch does.
Comment #7
junro commentedHum I certainly make a mistake somewhere. I was patching with another methode before. Only use it once this one.
I take care of it right know.
Comment #8
junro commentedOk, I don't know why I can't apply this patch... It's not very difficult.
I apply the patch manually and the problem is solve.
Thanks :)
Comment #9
rfayCommitted to HEAD: http://drupal.org/cvs?commit=350242
Thanks!