Hi

I select the asset module and when I click on the Save Configuration Button at the bottom of the module administration page, I obtain this message :

Parse error: syntax error, unexpected $end in /home/www/client/www/sites/all/modules/asset/modules/asset_content.inc on line 414

What is on the 414 line : nothing unusuall to my opinion :

'#prefix' => '<div style="margin-'.$rtl.':130px"><table style="width:400px;margin-top:-30px;border-collapse:inherit"><tr><td

Don't understand what's going on...

When I clear asset folder from sites/all/modules/ it's allright ; but if I reimport it and reinstall it in sites/all/modules/ >> same Parse error...

If somebody has a solution...
Thank you and sorry for my bad english...

Status report : OK
Status report detail :
Drupal 5.14
Configuration file Protected
Cron maintenance tasks Last run 37 sec ago
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
MySQL database 4.1.22
PHP 5.2.4
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server Apache
jQuery Update Installed correctly
The current installed version of jQuery is 1.2.6

Comments

marcelduchamp’s picture

Hi,

Just to say that in local mode (WampServer 2.0e), all modules work correctly...

wmostrey’s picture

Hi Marcel,

I would try to re-upload the asset module, it could be that this is caused by a wrong file transfer.

marcelduchamp’s picture

Hi,

Thank you wmostrey : I have tried and it seems to be a conflict between cck and asset modules :

when I install them separetely (only cck or only asset), it's allright but when I install both together (cck + asset) I obtain the error :

Parse error: syntax error, unexpected $end in /home/www/client/www/sites/all/modules/asset/modules/asset_content.inc on line 414

Any Idea ?

Thanx

robbieferrero’s picture

I am having the same problem. I will look into it more this weekend.

robbieferrero’s picture

I removed the asset folder, uninstalled the module, then uploaded the asset folder again and it works now.

wmostrey’s picture

Status: Active » Fixed
marcelduchamp’s picture

Sorry wmostrey but the problem is not fixed...

Maybe nymous had another problem...

uninstalling and reuploading the asset folder don't solve the problem :

asset alone is allright

cck alone is allright

but cck + asset = Parse error: syntax error, unexpected $end in /home/www/client/www/sites/all/modules/asset/modules/asset_content.inc on line 414

I'm under PHP 5.2.4 and MySQL database 4.1.22

I have 32MB memory_limit
and 8M post_max_size

all other modules work great : panels, views, OG, date, event, calendar...

Don't understand where this error comes from...

If somebody has idea...

Thanx...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

kiko’s picture

I'm having the same problem. Wirh rc2 everything works fine, but upgrading to 1.0 makes the site break.

daphisto’s picture

I'm having the exact same problem with 1.0 as well.

UlamTheLucky’s picture

StatusFileSize
new3.71 KB

Here is the fixed file. The problem is in line 92 with function asset_field($op, &$node, $field, &$items, $teaser, $page).

The line breaks are all gone, so this function appears entirely on one text line, and the comment after:

$additions = array(); // Return assets in a structured......

Causes the function to not have a closing }... therefore the error.

UlamTheLucky’s picture

StatusFileSize
new3.71 KB

Oops I attached the wrong file! that ones still has the error. THIS is the fixed one. Sorry about that!