A PHP Error was encountered
Severity: Notice
Message: Trying to get property 'id' of non-object
Filename: helpers/custom_helper.php
Line Number: 208
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/helpers/custom_helper.php
Line: 208
Function: _error_handler
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php
Line: 273
Function: get_category_menu_reverse
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Trying to get property 'name' of non-object
Filename: helpers/custom_helper.php
Line Number: 208
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/helpers/custom_helper.php
Line: 208
Function: _error_handler
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php
Line: 273
Function: get_category_menu_reverse
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Trying to get property 'slug' of non-object
Filename: helpers/custom_helper.php
Line Number: 208
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/helpers/custom_helper.php
Line: 208
Function: _error_handler
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php
Line: 273
Function: get_category_menu_reverse
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Trying to get property 'parent_id' of non-object
Filename: helpers/custom_helper.php
Line Number: 210
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/helpers/custom_helper.php
Line: 210
Function: _error_handler
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php
Line: 273
Function: get_category_menu_reverse
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Trying to get property 'parent_id' of non-object
Filename: helpers/custom_helper.php
Line Number: 214
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/helpers/custom_helper.php
Line: 214
Function: _error_handler
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php
Line: 273
Function: get_category_menu_reverse
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered Severity: Warning
Message:Cannot modify header information - headers already sent by (output started at /var/www/smart-hospital.in1hw8sb28h/public_html/system/core/Exceptions.php:271)
Filename: _templates/template.php
Line Number: 4
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/views/public/_templates/template.php Line: 4 Function: header
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/libraries/Template.php Line: 47 Function: view
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php Line: 293 Function: public_render
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php Line: 315 Function: require_once
A PHP Error was encountered Severity: Warning
Message:Cannot modify header information - headers already sent by (output started at /var/www/smart-hospital.in1hw8sb28h/public_html/system/core/Exceptions.php:271)
Filename: _templates/template.php
Line Number: 5
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/views/public/_templates/template.php Line: 5 Function: header
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/libraries/Template.php Line: 47 Function: view
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php Line: 293 Function: public_render
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php Line: 315 Function: require_once
A PHP Error was encountered Severity: Warning
Message:Cannot modify header information - headers already sent by (output started at /var/www/smart-hospital.in1hw8sb28h/public_html/system/core/Exceptions.php:271)
Filename: _templates/template.php
Line Number: 6
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/views/public/_templates/template.php Line: 6 Function: header
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/libraries/Template.php Line: 47 Function: view
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php Line: 293 Function: public_render
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php Line: 315 Function: require_once
A PHP Error was encountered Severity: Warning
Message:Cannot modify header information - headers already sent by (output started at /var/www/smart-hospital.in1hw8sb28h/public_html/system/core/Exceptions.php:271)
Filename: _templates/template.php
Line Number: 7
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/views/public/_templates/template.php Line: 7 Function: header
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/libraries/Template.php Line: 47 Function: view
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php Line: 293 Function: public_render
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php Line: 315 Function: require_once
A PHP Error was encountered Severity: Warning
Message:Cannot modify header information - headers already sent by (output started at /var/www/smart-hospital.in1hw8sb28h/public_html/system/core/Exceptions.php:271)
Filename: _templates/template.php
Line Number: 8
Backtrace:
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/views/public/_templates/template.php Line: 8 Function: header
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/libraries/Template.php Line: 47 Function: view
File: /var/www/smart-hospital.in1hw8sb28h/public_html/application/controllers/Home.php Line: 293 Function: public_render
File: /var/www/smart-hospital.in1hw8sb28h/public_html/index.php Line: 315 Function: require_once
IIS - Windows Server Installation - Smart Hospital : Hospital Management System by QDOCS
IIS - Windows Server Installation Fri, 17 Dec, 2021
Using Windows based IIS Web Server hosting which is not recommended to use Smart Hospital. We provide support only for Linux with Apache hosting for Smart Hospital so its highly recommended to use Smart Hospital on LAMP (Linux, Apache, MySQ, PHP) based hosting .mod_rewrite should be enabled on your hosting before installing Smart Hospital. Place the web.config file in the folder where you are trying to install Smart Hospital. Use the following web.config file to install on IIS server.<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
If this web.config doesn’t work try the following -<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<asp scriptErrorSentToBrowser="true" />
<httpErrors existingResponse="PassThrough" errorMode="Detailed"></httpErrors>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
If you are installing Smart Hospital in a subfolder or in a subdomain and both web.config files above doesn’t work, please try this web.config file -<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="MainFolder" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
After this start Smart Hospital installation and follow the steps.