MukurtuCMS / mukurtucms

GNU General Public License v2.0
83 stars 36 forks source link

Error installing on PHP 7.3 #130

Closed syntaxseed closed 4 years ago

syntaxseed commented 4 years ago

I receive an error on the Install Profile step of installation. I suspect this is related to incompatibility with PHP 7.3 which has a backward compatibility break in the use of continue in a switch statement.

Changing my environment to PHP 7.2 and trying again, resolves the issue.

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://localhost:8000/install.php?profile=mukurtu&locale=en&id=1&op=do StatusText: OK ResponseText: ( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/sherriw/Development/Repos/Git/Clients/MunseeDelaware/public/sites/all/modules/contrib/partial_date/partial_date.module on line 1684 Call Stack #TimeMemoryFunctionLocation 10.0006402008{main}( ).../install.php:0 20.0008402248install_drupal( ).../install.php:26 32.62481054416install_run_tasks( ).../install.core.inc:77 47.262815080136install_run_task( ).../install.core.inc:339 57.263015080136_batch_page( ).../install.core.inc:450 67.264615103728_batch_do( ).../batch.inc:80 77.264715103728_batch_process( ).../batch.inc:161 87.265815112224_install_module_batch( ).../batch.inc:284 97.265815112600module_enable( ).../install.core.inc:1609 107.915714730648module_invoke( ).../module.inc:498 117.915814731024ma_core_install( ).../module.inc:934 127.980114218800module_enable( ).../ma_core.install:8 1317.815117284040module_invoke( ).../module.inc:505 1417.815117284416scald_index_enable( ).../module.inc:934 1517.815117284416drupal_flush_all_caches( ).../scald_index.install:28 1639.155416219296module_invoke_all( ).../common.inc:7749 1751.955716624072features_flush_caches( ).../module.inc:965 1852.008516624072features_rebuild( ).../features.module:274 1952.008516624072_features_restore( ).../features.module:1032 2053.460919623920features_invoke( ).../features.module:1004 2153.461019624352dependencies_features_rebuild( ).../features.module:598 2253.461419625144features_install_modules( ).../features.features.inc:70 2353.540519640584module_enable( ).../features.module:653 2461.879221285760drupal_load( ).../module.inc:455 ( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in /home/sherriw/Development/Repos/Git/Clients/MunseeDelaware/public/modules/field/field.crud.inc on line 388 Call Stack #TimeMemoryFunctionLocation 10.0006402008{main}( ).../install.php:0 20.0008402248install_drupal( ).../install.php:26 32.62481054416install_run_tasks( ).../install.core.inc:77 47.262815080136install_run_task( ).../install.core.inc:339 57.263015080136_batch_page( ).../install.core.inc:450 67.264615103728_batch_do( ).../batch.inc:80 77.264715103728_batch_process( ).../batch.inc:161 87.265815112224_install_module_batch( ).../batch.inc:284 97.265815112600module_enable( ).../install.core.inc:1609 107.915714730648module_invoke( ).../module.inc:498 117.915814731024ma_core_install( ).../module.inc:934 127.980114218800module_enable( ).../ma_core.install:8 1317.815117284040module_invoke( ).../module.inc:505 1417.815117284416scald_index_enable( ).../module.inc:934 1517.815117284416drupal_flush_all_caches( ).../scald_index.install:28 1639.155416219296module_invoke_all( ).../common.inc:7749 1751.955716624072features_flush_caches( ).../module.inc:965 1852.008516624072features_rebuild( ).../features.module:274 1952.008516624072_features_restore( ).../features.module:1032 2053.460919623920features_invoke( ).../features.module:1004 2153.461019624352dependencies_features_rebuild( ).../features.module:598 2253.461419625144features_install_modules( ).../features.features.inc:70 2353.540519640584module_enable( ).../features.module:653 24116.905921179296module_invoke_all( ).../module.inc:520 25122.073223274456features_modules_enabled( ).../module.inc:965 26139.332124005800_features_restore( ).../features.module:387 27600.737431983984features_invoke( ).../features.module:1004 28600.737431984416field_base_features_rebuild( ).../features.module:598 29603.147730570888field_create_field( ).../features.field.inc:289 30603.413230868016module_invoke( ).../field.crud.inc:196 31603.413230868392field_sql_storage_field_storage_create_field( ).../module.inc:934 32605.003830873040drupal_get_schema( ).../field_sql_storage.module:271 33605.003830873040drupal_get_complete_schema( ).../bootstrap.inc:3290 34605.027331050064module_invoke( ).../bootstrap.inc:3370 35605.027431050440field_sql_storage_schema( ).../module.inc:934 36605.028231050440field_read_fields( ).../field_sql_storage.install:16
syntaxseed commented 4 years ago

Note that Drupal 7's official docs say it should be compatible with 7.3.

taylor-steve commented 4 years ago

Drupal 7 recently added support for PHP 7.3, but some of the contrib modules Mukurtu uses have not yet updated to support it. Until then, PHP 7.2 is the way to go for Mukurtu. Thanks.

syntaxseed commented 4 years ago

This should really be specified more clearly in the Mukurtu docs.

taylor-steve commented 4 years ago

Agreed, it has been altered in the readme and the wiki. Thanks.