I got a blank page after upgrading to the latest version released on 12/1

I found the following entry in my apache error_log.

[client XX.XXX.XXX.XX] PHP Parse error: parse error, unexpected '=', expecting ')' in /opt/Drupal/sites/all/modules/quicktabs/includes/admin.inc on line 147, referer: http://XXXXXXXXXX.com/node/135

Thanks for any guidance~

Comments

pasqualle’s picture

can you check the line 147 in your quicktabs/includes/admin.inc file?
is it the same as this?

function _qt_admin_main_form($form_state = NULL, &$quicktabs = NULL, $ajax = FALSE) {

if it is same. does changing it like this helps?

function _qt_admin_main_form($form_state = NULL, &$quicktabs, $ajax = FALSE) {

can you tell your PHP version?

pillow’s picture

Status: Active » Closed (fixed)

It's 4.3.9.
The problem has gone in the 2/12 version, line 147 in this verion is the following:

function _qt_admin_main_form($form_state = NULL, &$quicktabs = NULL, $ajax = FALSE) {

thanks!

pillow’s picture

Status: Closed (fixed) » Active

Sorrry for forgetting to clear the cache right now, the problem takes place still after that.

and delete the string "= NULL" after &$quicktabs make no changes~

pasqualle’s picture

this line was changes in CVS

can you test the next dev relelease?
http://drupal.org/node/329318

check the date, it should be after this:
Last updated: December 3, 2008 - 13:11

pasqualle’s picture

and also don't forget to rebuild your menu, which can be done by visiting the /admin/build/modules page and clicking on the 'Save configuration' button

pillow’s picture

The new version does not make every page blank but "Building - Module" page when I try to rebuild my menu,
and the following entry was record in apache error_log

[client XX.XXX.XX.XX] PHP Parse error: parse error, unexpected T_ARRAY, expecting ')' in /opt/Drupal/sites/all/modules/quicktabs/includes/admin.inc on line 157, referer: http://XXXXXX.com/

pasqualle’s picture

ok, now I understand

that is type hinting http://drupal.org/node/318016 which is not supported in PHP 4. I will remove those from the 6.x-2.x version, but be warned that you will have to upgrade your php to be able to use Drupal 7 and contributed modules..

pasqualle’s picture

type hinting removed

please test the next dev release
Last updated date should be after: December 4, 2008 - 01:14

pasqualle’s picture

Status: Active » Postponed (maintainer needs more info)

Is it working now?

pillow’s picture

Thanks for support and sorry for away from PC these days.
The 12/8 version gives me a blank page still, and apache error log says:

[client xx.xxx.xxx.xxx3] PHP Parse error: parse error, unexpected '=', expecting ')' in /opt/Drupal/sites/all/modules/quicktabs/quicktabs.module on line 394, referer: http://xxxxx.com/node/1

pasqualle’s picture

#10 fixed http://drupal.org/cvs?commit=157535

please check the next dev release

pillow’s picture

Thanks for reminding about upgrading php.

Actually I'm wishing to do it, but my server OS is RHEL 4 and havn't found an official or completely safe upgrade procedue。Would you like to give me any guidance?

pasqualle’s picture

sorry, I am not familiar with the php upgrade process either. Try to open a documentation issue, someone will help you for sure. You can even ask for a new handbook page, because it will be much needed with D7.

pillow’s picture

Status: Postponed (maintainer needs more info) » Fixed

There is no blank page anymore, but need to update the Mysql DB. After that, I got the following message in the top of the page. The content in Qtab lost, after reconfigure the style and tab conent, the page is back finally.
Now there is not erro log anymore, thanks for the great support

* user warning: Unknown column 'style' in 'field list' query: SELECT title, tabs, ajax, style FROM drupal_quicktabs WHERE qtid = 1 in /opt/Drupal/sites/all/modules/quicktabs/quicktabs.module on line 457.
* warning: Invalid argument supplied for foreach() in /opt/Drupal/sites/all/modules/quicktabs/quicktabs.install on line 88.
* user warning: Unknown column 'style' in 'field list' query: UPDATE drupal_quicktabs SET ajax = 0, title = '', tabs = 'N;', style = '' WHERE qtid = 0 in /opt/Drupal/sites/all/modules/quicktabs/includes/admin.inc on line 471.

pasqualle’s picture

every time you change any module release you should run the update.php
I am glad that it works with php 4 now, thanks for testing..

Status: Fixed » Closed (fixed)

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