I can not edit primary links.
Fatal error: Only variables can be passed by reference in E:\wwwapache\drupal\modules\system.module on line 649

Comments

somes’s picture

what are you using we do need more info if u want help

Did you manage to install a basic drupal site ...
what changes did you make after that

milen-1’s picture

I have installed the basic Drupal with Apache and MySql.
Everything work normal exept "Edit primary links", "Edit secondary links", and Themes -> Configure

somes’s picture

What version are you running have you made any changes to the default installation, have you tried deleting the database and starting again

have you tried installing all the original modules that came with the package

theme is blue marine i guess

djnz’s picture

...that has been fixed for the 4.6.4 release (whenever that may be). It only occurs with PHP5 and as most people are still using PHP4 it does not come up as often as you might think.

To fix it, you need to edit /drupal/modules/system.module at line 649. Replace

    file_check_directory(variable_get('file_directory_path', 'files'), FILE_CREATE_DIRECTORY, 'file_directory_path');

with

    $directory_path = variable_get('file_directory_path', 'files');
    file_check_directory($directory_path, FILE_CREATE_DIRECTORY, 'file_directory_path'); 

--------------------- WEBg8 ---------------------

milen-1’s picture

Yes now the problem with "edit primary links" and "edit secondary links" is fixed.
But the same problem is when cklick on themes -> configure.
Also the "Theme editor" module is not working.

milen-1’s picture

Bu the error is different, on another line:
Fatal error: Only variables can be passed by reference in E:\wwwapache\drupal\modules\system.module on line 25

djnz’s picture

I think you either need to use PHP4 or the CVS version of Drupal 4.6 as 4.6.3 was not written to work with PHP5.

--------------------- WEBg8 ---------------------

sepeck’s picture

Now wait a minute, your blanket statement is less then accurate.

4.6.3 was written to work with php5. However, php5.0.5 and I think php 4.4.0 have changed how they handle some variables or some such stuff. Now based on that change, there is discussion and patches being looked at to handle this.

Short term suggestion, downgrade your php version, long temr one, accurate reporting of issues and any help with working towards patches on a long term solution are greatly welcome.

I have two friends that run several sites on php5 quite succesfully with more modules than I use (one *nix/Apache, then other Win/IIS).

-sp
---------
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