As long as I overwrite the old module files with new module files (release @ March 06), my site crashed with following error:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/***/public_html/sites/default/modules/localizer/localizer.module on line 1111
Can not proceed and had to rollback my site to previous status.
BTW, I am excited about any new release of localizer module !
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | localizer_module01_0.patch | 952 bytes | Wuk |
| #11 | localizer_module01.patch | 952 bytes | Wuk |
| #10 | localizer_module.patch | 950 bytes | Wuk |
Comments
Comment #1
Roberto Gerola commentedWhich version of PHP are you using ?
Comment #2
Wuk commentedI had the same error, and I'm using PHP4, so I believe that the problem is in a "&" line 1111 and 1133,
line is:
I have removed that "&" and it worked for me, but i'm not sure that that is the right solution.
Comment #3
huayen commentedI am using PHP4
Comment #4
ray007 commentedif you want to iterate with references in php4, you have to do it with 2 lines:
This should have the intended effect with both versions of php.
Comment #5
Roberto Gerola commentedRestored models files on cvs.
Only for DRUPAL-5 branch. Download that with comment : Restore
Thanks
Comment #6
Roberto Gerola commentedComment #7
giorgoskIt still happens to me
I downloaded the latest package
5.x-1.x-dev 2007-Mar-10 273.66 KB
using PHP 4, and a clean drupal 5.1 installation
dropped the patched files in the appropriate places
enabled just the main module of Localizer
it asked that Locale be enabled also
and then the error appears
Comment #8
Roberto Gerola commentedWhat error and and at what line ?
The previous incompatibility with PHP4 should be fixed.
Is there another one ?
Thanks
Comment #9
Roberto Gerola commentedWhat error and and at what line ?
The previous incompatibility with PHP4 should be fixed.
Is there another one ?
Thanks
Comment #10
Wuk commentedUsing dev cvs snapshot that was created today (10.03.2007) I got same error on line 1111 and 1133.
ray007 suggestion didn't work for me.
I changed foreach with while
Please check attached diff file.
Comment #11
Wuk commentedThere is an error in previous post.
Comment #12
Wuk commentedThere is an error in previous patch file.
Comment #13
Wuk commentedpatch does not work, it doesn't throw errors but it won't save translations.
Comment #14
Roberto Gerola commentedThanks.
I have integrated your patch.
About the error with localizertranslation table. It is my fault.
I have corrected the insert sql code for this table. Now localzier uses the correct method
of Drupal and no more the auto_increment option of Mysql.
I'll prepare the proper update SQL code, in meantime :
with phpmyadmin : remove the auto_increment flag from the tid column in localizertranslation
table and run this sql code :
insert into sequences select 'localizertranslation_tid', max(tid) from localizertranslation;
And if the sequence has been already created :
select max(tid) from localizertransaltion; --> #value#
update sequences set id=#value# where name = 'localizertransaltion_tid';
Let me know.
Thank you for your feedback.
Comment #15
Wuk commentedIt works.
Thank you.
Comment #16
sunComment #17
(not verified) commented