Closed (fixed)
Project:
Synonyms
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2013 at 11:10 UTC
Updated:
26 Feb 2013 at 23:10 UTC
Hi,
I get a white screen and above mentioned syntax error when enabling this module.
The cause of the error are the double semicolons used in this line (and others):
foreach ($class::fieldTypesSupported() as $_field_type) {...
I use PHP 5.2 - can this be the root of the problem?
Alex
Comments
Comment #1
webbykat commentedI had the same issue, and can confirm that it's related to PHP 5.2. Here are the steps I followed to confirm:
Comment #2
bucefal91 commentedSorry, guys, I wasn't thinking about PHP versions when writing the code. I've changed the syntax. It is successfully working on my 5.3.0
Can you please try current 7.x-1.x-dev on your PHP 5.2 machine?
Thanks for feedback.
Comment #3
alexh commentedThanks very much for the update, the error with T_PAAMAYIM_NEKUDOTAYIM is gone away.
But after hitting the submit button on adding new term I get blank screen with message "The website encountered an unexpected error. Please try again later."
This error is shown in the recent log messages (watchdog):
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7633 of /data/www/htdocs/icpdr/aews2/includes/common.inc).
The new term is still created and it seems except for the error message, everything else is ok.
I tried this also with a new taxonomy and found the same problem.
BTW, I also had a hard time finding out that the module term_reference_filter_by_views obviously breaks the autocomplete suggestions feature of synonyms, even when it is not used for the field, only enabled as a module.
Comment #4
bucefal91 commentedSorry it took me a little of time to come back to this issue, was busy working on other modules.
In regards to the 1st part of the issue. Have you tried disabling and uninstalling Synonyms module and then enabling it back? Are you still having issues after it?
Also, as I am not sure what other modules you have installed in your drupal installation, have you tried on a fresh new drupal installing synonyms module and do this way you get rid of the blank screen and an error in watchdog? Unfortunately the error message is too general and it's not enough to be sure what exactly triggers it.
Please, let me know if you are still having problems after trying both of the above.
In regards to the 2nd part of the issue. I have taken a look at term_reference_filter_by_views module (7.x-2.0-alpha1) unfortunately code of that module is not really respectful (or careful) for alterations of things other modules make. It overrides #autocomplete_path for synonyms widget with its own - thus leaving Synonyms module out of the game. If you need both modules in your drupal installation I would suggest opening a ticket against term_reference_filter_by_views module because it's the code of term_reference_filter_by_views that needs to be changed in order to make work these 2 modules together... or at least not breaking one another. Firstly would be just making sure term_reference_filter_by_views doesn't break down Synonyms module and then trying to see the possibilities of their integration.
P.S. I am changing the title of issue to make it more informative since now we know exactly where the original problem was.
Comment #5
bucefal91 commentedTo be more precise the problem with Term Ref. Filter by Views module lays here:
Line#37 of ./term_reference_filter_by_views/term_reference_filter_by_views.module
Comment #6
alexh commentedSorry for bothering you with the EntityMalformedException error - it is definitely coming from another module. I have this error still after uninstalling Synonyms and I don't have this error with a fresh install of Drupal 7.19 and Synonyms 7.x-1.x-dev of 2013-Feb-01 on PHP 5.2.
I thought the term_reference_filter_by_views module could be an alternative in my case, but now I prefer Synonyms and won't use it.
Thanks again for addressing the initial issue - I think this issue can be closed.
Comment #7
bucefal91 commentedThanks for choosing Synonyms as your final module to use! :)
Closing the issue.