Exception in PHP Script
/frontend/detail.php
PHP Version: 8.0.27;  Zend Engine Version: 4.0.27;  QCubed Version: 2.0.2 Development Release (QCubed 2.0.2)
Application: Apache/2.4.29;  Server Name: www.antolinidobrasil.com.br
HTTP User Agent: claudebot
count(): Argument #1 ($value) must be of type Countable|array, string given
Exception Type:   TypeError

Rendered Page:   Click here to view contents able to be rendered

Source File:   /home/sitobrasile/public_html/nextgest/includes/qcubed/_core/qform_state_handlers/QFileFormStateHandler.class.php     Line:   87

Line 82:    		 */
Line 83:    		public static function GarbageCollect() {
Line 84:    			// Go through all the files
Line 85:    			$objDirectory = dir(self::$StatePath);
Line 86:    			while (($strFile = $objDirectory->read()) !== false) {
Line 87:    				if (!count(self::$FileNamePrefix))
Line 88:    					$intPosition = 0;
Line 89:    				else
Line 90:    					$intPosition = strpos($strFile, self::$FileNamePrefix);
Line 91:    				if (($intPosition !== false) && ($intPosition == 0)) {
Line 92:    					$strFile = sprintf('%s/%s', self::$StatePath, $strFile);

Call Stack:

#0 /home/sitobrasile/public_html/nextgest/includes/qcubed/_core/qform_state_handlers/QFileFormStateHandler.class.php(107): QFileFormStateHandler::GarbageCollect()
#1 /home/sitobrasile/public_html/nextgest/includes/qcubed/_core/base_controls/QFormBase.class.php(514): QFileFormStateHandler::Save()
#2 /home/sitobrasile/public_html/nextgest/includes/qcubed/_core/base_controls/QFormBase.class.php(1213): QFormBase::Serialize()
#3 /home/sitobrasile/public_html/frontend/tpl/statics/page_footer.php(3): QFormBase->RenderEnd()
#4 /home/sitobrasile/public_html/frontend/tpl/base/main.tpl.php(15): include('...')
#5 /home/sitobrasile/public_html/nextgest/includes/qcubed/_core/base_controls/QFormBase.class.php(865): require('...')
#6 /home/sitobrasile/public_html/nextgest/includes/qcubed/_core/base_controls/QFormBase.class.php(311): QFormBase->Render()
#7 /home/sitobrasile/public_html/nextgest/cstmClasses/TemplateForm.class.php(56): QFormBase::Run()
#8 /home/sitobrasile/public_html/frontend/detail.php(130): TemplateForm::Run()
#9 {main}

Variable Dump:   Show/Hide



Exception Report Generated:  Tuesday, March 19 2024, 11:54:13 AM