Error while executing install.php

I’m getting an error while installing suitecrm into my local server (xampp).

Checking Environment

System passed check for compatibility.
Preparing to Install
 (Stuck on this stage)

below is the error that I received on my last attempt.

Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\suitecrm\jssource\Minifier.php on line 240
var AlertObj=function(){this.title=‘Alert’;this.options={};this.options.body=’ ‘;this.options.url_redirect=’’;this.options.target_module=’’;this.options.type=‘info’;};var Alerts=function(){};Alerts.prototype.replaceMessages=[];Alerts.prototype.enable=function(){var alert=new AlertObj();if(!(“Notification"in window)){alert.title=SUGAR.language.translate(‘app_strings’,‘MSG_BROWSER_NOTIFICATIONS_UNSUPPORTED’);Alerts.prototype.show(alert);return;} Notification.requestPermission(function(permission){if(permission===“granted”){alert.title=SUGAR.language.translate(‘app_strings’,‘MSG_BROWSER_NOTIFICATIONS_ENABLED’);} else{alert.title=SUGAR.language.translate(‘app_strings’,‘MSG_BROWSER_NOTIFICATIONS_DISABLED’);} Alerts.prototype.show(alert);});};Alerts.prototype.requestPermission=function(){if(!(“Notification"in window)){return;} Notification.requestPermission();};Alerts.prototype.show=function(AlertObj){Alerts.prototype.requestPermission();if((“Notification"in window)){if(Notification.permission===“granted”){if(typeof AlertObj.options!==“undefined”){if(typeof AlertObj.options.target_module!==“undefined”){SUGAR.themes.theme_name=undefined;AlertObj.options.icon=‘index.php?entryPoint=getImage&themeName=’+ SUGAR.themes.theme_name+’&imageName=’+ AlertObj.options.target_module+‘s.gif’;} if(typeof AlertObj.options.type===“undefined”){AlertObj.options.type=‘info’;}} var notification=new Notification(AlertObj.title,AlertObj.options);if(typeof AlertObj.options!==“undefined”){if(typeof AlertObj.options.url_redirect!==“undefined”){notification.onclick=function(){window.open(AlertObj.options.url_redirect);}}}} else{var message=AlertObj.title;if(typeof AlertObj.options!==“undefined”){if(typeof AlertObj.options.body!==“undefined”){message+=’\n’+AlertObj.options.body;} message+=SUGAR.language.translate(‘app_strings’,‘MSG_JS_ALERT_MTG_REMINDER_CALL_MSG’)+”\n\n”;if(confirm(message)){if(typeof AlertObj.options!==“undefined”){if(typeof AlertObj.options.url_redirect!==“undefined”){window.location=AlertObj.options.url_redirect;}}}}}}};Alerts.prototype.addToManager=function(AlertObj){var url=‘index.php’,name=AlertObj.title,description,url_redirect,is_read=0,target_module,type=‘info’;if(typeof AlertObj.options!==“undefined”){if(typeof AlertObj.options.url_redirect!==“undefined”){url_redirect=AlertObj.options.url_redirect} if(typeof AlertObj.options.body!==“undefined”){description=AlertObj.options.body} if(typeof AlertObj.options.target_module!==“undefined”){target_module=AlertObj.options.target_module} if(typeof AlertObj.options.type!==“undefined”){type=AlertObj.options.type} if(typeof AlertObj.options.reminder_id!==“undefined”){reminder_id=AlertObj.options.reminder_id}} $.post(url,{module:‘Alerts’,action:‘add’,name:name,description:description,url_redirect:url_redirect,is_read:is_read,target_module:target_module,reminder_id:reminder_id,type:type}).done(function(jsonData){data=JSON.parse(jsonData);if(typeof data!==‘undefined’&&typeof data.result!==‘undefined’&&data.result===1){Alerts.prototype.show(AlertObj);}}).fail(function(data){console.error(data);}).always(function(){Alerts.prototype.updateManager();});};Alerts.prototype.redirectToLogin=function(){var getQueryParams=function(qs){qs=qs.split(’+’).join(’ ‘);var params={},tokens,re=/[?&]?([^=]+)=([^&]*)/g;while(tokens=re.exec(qs)){params[decodeURIComponent(tokens[1])]=decodeURIComponent(tokens[2]);} return params;};var params=getQueryParams(document.location.search);params.entryPoint=undefined;if(params.entryPoint!==‘Changenewpassword’&¶ms.module!==‘Users’&¶ms.action!==‘Login’){document.location.href=‘index.php?module=Users&action=Login&loginErrorMessage=LBL_SESSION_EXPIRED’;return true;} return false;};Alerts.prototype.updateManager=function(){var url=‘index.php?module=Alerts&action=get&to_pdf=1’;$.ajax(url).done(function(data){if(data===‘lost session’){Alerts.prototype.redirectToLogin();return false;} for(var replaceMessage in Alerts.prototype.replaceMessages){data=data.replace(Alerts.prototype.replaceMessages[replaceMessage].search,Alerts.prototype.replaceMessages[replaceMessage].replace);} var alertsDiv=$(’.desktop_notifications #alerts’);alertsDiv.html(data);var alerts=$(’
‘);$(data).appendTo(alerts);var alertCount=$(alerts).children(’.alert’).length;var alertCountDiv=$(’.alert_count’);var desktopNotificationsDiv=$(’.desktop_notifications’);var alertButtonDiv=$(’.alertsButton’);alertCountDiv.html(alertCount);if(alertCount>0){alertsDiv.addClass(‘has-alerts’);desktopNotificationsDiv.addClass(‘has-alerts’);alertButtonDiv.removeClass(‘btn-’).addClass(‘btn-danger’);alertCountDiv.removeClass(‘hidden’);} else{desktopNotificationsDiv.removeClass(‘has-alerts’);alertsDiv.removeClass(‘has-alerts’);alertButtonDiv.removeClass(‘btn-danger’).addClass(‘btn-success’);alertCountDiv.addClass(‘hidden’);}});};Alerts.prototype.markAsRead=function(id){var url=‘index.php?module=Alerts&action=markAsRead&record=’+id+’&to_pdf=1’;$.ajax(url).done(function(){Alerts.prototype.updateManager();});};$(document).ready(function(){Alerts.prototype.replaceMessages=[{search:SUGAR.language.translate(“app”,“MSG_JS_ALERT_MTG_REMINDER_CALL_MSG”),replace:”"},{search:SUGAR.language.translate(“app”,“MSG_JS_ALERT_MTG_REMINDER_MEETING_MSG”),replace:""}];var updateMissed=function(){Alerts.prototype.updateManager();setTimeout(updateMissed,60000);};setTimeout(updateMissed,2000);})
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\htdocs\suitecrm\jssource\Minifier.php on line 182

Unfortunately with time everything uses up more resources and requires more CPU power. In your case, I suspect that you may be trying to install on an older system.

php scripts by default are limited in how long they can run for. You will need to edit your php.ini file and change the script timeout for php files. Probably in c:\xampp\php\php.ini


but you can find the exact location by creating the following file in your web root:

<?php

phpinfo();

?>

For the install process, it takes quite a bit of time, so increase the value by 2 or 3 times depending on your system performance. After the install has been completed, change the value back as it helps provide protection from runaway scripts that may end up hogging cpu resources.

Thanks for the reply. I changed timeout to infinite just for installation process. problem still persist. The process gets stuck on preparing for installation. and the system I’m installing in is very new. I kept install.php running whole night, and still no progress.
Is there any what you can help me out remotely? I share my screen or something.

This is where it gets stuck!

I presume that you can click in the ‘I accept’ box? What happens when you try to click next?

Can I recommend a read of:
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html

If the browser interface has genuinely ‘frozen’ and doesn’t respond to any input, then probably worth looking at:

  1. Task manager
  2. Xampp log files

Yes I did click on I accept check box and then clicked next, once i do that, page redirects to checking environment wizard.

this is the error logs with bunch of warnings:
[Fri Aug 13 08:53:20.515370 2021] [ssl:warn] [pid 18952:tid 484] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 13 08:53:20.681602 2021] [core:warn] [pid 18952:tid 484] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten – Unclean shutdown of previous Apache run?
[Fri Aug 13 08:53:20.686603 2021] [ssl:warn] [pid 18952:tid 484] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 13 08:53:20.755189 2021] [mpm_winnt:notice] [pid 18952:tid 484] AH00455: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.9 configured – resuming normal operations
[Fri Aug 13 08:53:20.755189 2021] [mpm_winnt:notice] [pid 18952:tid 484] AH00456: Apache Lounge VS16 Server built: May 18 2021 10:45:56
[Fri Aug 13 08:53:20.756189 2021] [core:notice] [pid 18952:tid 484] AH00094: Command line: ‘c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache’
[Fri Aug 13 08:53:20.761207 2021] [mpm_winnt:notice] [pid 18952:tid 484] AH00418: Parent: Created child process 14872
[Fri Aug 13 08:53:21.337837 2021] [ssl:warn] [pid 14872:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 13 08:53:21.529885 2021] [ssl:warn] [pid 14872:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 13 08:53:21.606571 2021] [mpm_winnt:notice] [pid 14872:tid 568] AH00354: Child: Starting 150 worker threads.
[Fri Aug 13 08:53:32.881768 2021] [php:warn] [pid 14872:tid 1896] [client ::1:64781] PHP Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\suitecrm\include\utils.php on line 1845
[Fri Aug 13 08:53:32.882768 2021] [php:warn] [pid 14872:tid 1896] [client ::1:64781] PHP Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\suitecrm\include\utils.php on line 1799
[Fri Aug 13 08:53:33.713354 2021] [php:warn] [pid 14872:tid 1804] [client ::1:62936] PHP Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\suitecrm\include\utils.php on line 1845
[Fri Aug 13 08:53:33.714354 2021] [php:warn] [pid 14872:tid 1804] [client ::1:62936] PHP Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\suitecrm\include\utils.php on line 1799
[Fri Aug 13 08:56:11.339606 2021] [php:warn] [pid 14872:tid 1804] [client ::1:49347] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\suitecrm\jssource\Minifier.php on line 241, referer: http://localhost/suitecrm/install.php

Checking environment wizard should give you a list of things that work/don’t work for your install. What errors/problems did that give?

Warnings are generally things that ought to be fixed, but can be survived with.

I’m now to state that you really ought to read:
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html
and try and understand it. Providing the correct type of information makes it easier for us to help, and problems get resolved faster.