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
Comment #1
pasquallecan you check the line 147 in your quicktabs/includes/admin.inc file?
is it the same as this?
if it is same. does changing it like this helps?
can you tell your PHP version?
Comment #2
pillow commentedIt'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!
Comment #3
pillow commentedSorrry 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~
Comment #4
pasquallethis 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
Comment #5
pasqualleand 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
Comment #6
pillow commentedThe 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/
Comment #7
pasqualleok, 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..
Comment #8
pasqualletype hinting removed
please test the next dev release
Last updated date should be after: December 4, 2008 - 01:14
Comment #9
pasqualleIs it working now?
Comment #10
pillow commentedThanks 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
Comment #11
pasqualle#10 fixed http://drupal.org/cvs?commit=157535
please check the next dev release
Comment #12
pillow commentedThanks 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?
Comment #13
pasquallesorry, 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.
Comment #14
pillow commentedThere 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.
Comment #15
pasqualleevery 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..