Unhandled Error!

Error applying validation to url_name column. Column type is unknown. Probably this is a calculated column. Please call the "type" method to set the column type.

Document /phproad/modules/db/classes/db_columndefinition.php
Document type PHP document
Line 368
Exception class Phpr_SystemException

Code Highlight

		 * @param boolean $re_add This parameter is for internal use.
		 * @return Phpr_ValidationRules Returns the validation object.
		 */
		public function validation($customFormatMessage = null, $readd = false)
		{
			if (!strlen($this->type))
				throw new Phpr_SystemException('Error applying validation to '.$this->dbName.' column. Column type is unknown. Probably this is a calculated column. Please call the "type" method to set the column type.');
 
			if ($this->_validationObj && !$readd)
				return $this->_validationObj;
 
			$dbName = $this->isReference ? $this->referenceForeignKey : $this->dbName;
 
# Call Stack Code Document Line
17 Db_ColumnDefinition->validation(()) /modules/foxymedia/models/foxymedia_medium.php 39
16 FoxyMedia_Medium->define_columns(null) /phproad/modules/db/classes/db_activerecord.php 2636
15 Db_ActiveRecord->init_columns_info(null) /phproad/modules/db/classes/db_activerecord.php 482
14 Db_ActiveRecord->find_all_internal(null, array(0), null) /phproad/modules/db/classes/db_activerecord.php 536
13 Db_ActiveRecord->find_all(()) /modules/cms/classes/cms_controller.php(383) : eval()'d code 2
12 eval(()) /modules/cms/classes/cms_controller.php 383
11 Cms_Controller->evalWithException('?><? $downloads = FoxyMedia_Medium::create()->find_all(); if (count($downloads)): ?> <p>Downloads</p> <ul class="no-bullet"> <? foreach($downloads as $download): $image_url = isset($download->thumb[0]) ? $download->thumb[0]->getThumbnailPath(150, 'auto', true, array('mode' => 'crop')) : null; $download_url = $download->download_url(); ?> <li> <div class="row"> <!-- Download Image --> <div class="medium-2 columns download_image"> <? if ($image_url): ?> <a href="<?= $download_url ?>"><img src="<?= $image_url ?>" alt="<?= h($download->name) ?>" /></a> <? endif ;?> </div> <!-- Download Description --> <div class="medium-10 columns"> <h5><a href="<?= $download_url ?>"><?= h($download->name) ?></a></h5> <?= $download->description ?> <p><a href="<?= $download_url ?>" class="link_button round">Download <?= h($download->name) ?></a></p> </div> </div> </li> <? endforeach; ?> </ul> <? // Categories else: ?> No Downloads Found <? endif; ?>', 'CMS page', 'Downloads') /modules/cms/classes/cms_controller.php 608
10 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 198
9 Cms_Controller->open(object(Cms_Page), array(0)) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/downloads') /phproad/system/phproad.php 31
2 include('/home/accompli/public_html/acc3c/phproad/system/phproad.php') /boot.php 109
1 require_once('/home/accompli/public_html/acc3c/boot.php') /index.php 3