• Hi,
    After a successful installation I have got some problems with WP 2.5.1 in the back-end. Basically, when I try to administrate my widgets with both the default and the classic theme this message appear:

    Fatal error: Only variables can be passed by reference in "....co.uk/includes/widgets.php on line 67"

    Not only I can not make any changes to my sidebar but also the widgets are not listed properly in the back-end.

    My Hosting (not one of the best I reckon) has:

    -PHP-5.0.5
    -MySQL-4.1.7

    Also, I’ve got problems with WPAU and One Button Plugins Upgrade. Simply, my FTP credentials do not work (off-course I recheck many times my FTP details in order to be sure that is not an stupid problem.)

    Could it be a db user privilege problem?
    Any help?

    Thanks in advance,
    Nch.-

    PS: Sorry for my primitive English.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter nchroman

    (@nchroman)

    Anyone?

    Thread Starter nchroman

    (@nchroman)

    Perhaps, being more specific someone can help me. I am still having the same error with the widgets in the back:

    64  if ( 'all' == $show && $is_multi ) {
    65  // it's a multi-widget.  We only need to show it in the list once.
    66  $already_shown[] = $widget['callback'];
    67  //$num = (int) array_pop( explode( '-', $widget['id'] ) );
    68  $id_base = $wp_registered_widget_controls[$widget['id']]['id_base'];
    69  // so that we always add a new one when clicking "add"
    70  while ( isset($wp_registered_widgets["$id_base-$num"]) )

    As you can see I commented the 67 line, which is the “evil” line for my WP. Everything works fine when I comment this line, but I do not think that is a real solution for the problem.

    I can’t administrate my widgets properly with this error.
    Here is the error again, just in case.

    Fatal error: Only variables can be passed by reference in /home/.../public_html/wp-admin/includes/widgets.php on line 67

    I hope that someone has time and patience to give me a hand with this matter. Thanks,
    Nch.-

    Thread Starter nchroman

    (@nchroman)

    Anyone?

    nchroman….did you ever figure this out?

    i am having the EXACT same widgets problem and error and desperately need to figure it out.

    wow…no suggestions? hmmmmm

    … change line 67:

    $num = (int) array_pop( $widget[‘id’] );

    … into:

    $tempA = $widget[‘id’];
    $tempB = explode( ‘-‘, $tempA );
    $num = (int) array_pop( $tempB );

    worked for me. — greetz, Christian

    Thread Starter nchroman

    (@nchroman)

    Sorry davec53 there is not solution from my side. I’m still having the same problem. The line 67 is still commented in my widget.php file as a temporary patch. Thank you very much rotzoll but your idea didn’t work in my case.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Widget/Plugins problems on WP 2.5.1’ is closed to new replies.