Everything was working fine. Then I tried to enable widgeditor, and it completely crashed my site. Now the entire site is gone. This is all I get:

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/synet-co/public_html/zemea.info/main/modules/widgeditor/widgeditor.module on line 45

Comments

Ralf Skirr’s picture

Hi,

I had the same problem yesterday.
Deleting the folder that contained the module solved it.

I have not found a way to use the widgeditor yet, but at least you will have access to your drupal site again.

Ragards,
Ralf

P.S.

Would be great if anybody could post a solution that makes it possible to use that module.
As far as I know (just guesswork) it has to do with differences between php 4 and php 5.

Ralf Skirr’s picture

The node http://drupal.org/node/109555 suggests to remove the ampersand on line 45 of widgeditor.module.

I have not tried it yet.

Ralf Skirr’s picture

I just made the changes and now it's okay

to edit the widgeditor.module file you might have to add a .txt
at least that's the way I could open it in dreamweaver, after editing I removed the .txt of course

When working widgeditor is the best editor available :-)
it's suitable for dummy-users but still has all important features

walterbyrd’s picture

I removed the & but it still doesn't work

There is essentially no documentation, and it crashes web-sites.

The module may have potential, but it is not ready yet.

Ralf Skirr’s picture

maybe completely delete the module folder and then upload again.

make sure to check that the module is activated then and use 'enable wysiwyg' at the page you edit.

walterbyrd’s picture

For some reason, the area where you supposed to enter text for the body of the message comes up twice. If I re-load, at that point, then the page looks like it should.

That was in firefox 1.5.x. I have not tried msie yet.

GreenMoon’s picture

Make sure you are running PHP 5. With PHP 4.4 it displays double text areas if you enable it by default. If not set as default, it seems to work when the "Enable WYSIWYG" link is clicked for individual text areas.

However, it is not quite WYSIWYG. In wudgEdit mode, it does to show <p> and <br /> tags, although when you view HTML they are in there.

sepeck’s picture

It worked for me without crashing my site. I decided I didn't like it so removed it again.

Please work with the contributor to continue helping him test and refine the module with your experience and feedback in the modules issue queue.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide