Error

Call to a member function getUrl() on null

/var/www/site/diibii.com/html/social/protected/modules/home_public/widgets/views/guestHomeContentPreview.php(214)

202                 </div>
203             </div>
204 
205             <div class="panel panel-default panel-recommended">
206                 <div class="panel-heading text-center">
207                     <h4>Popular Spheres</h4>
208                 </div>
209                 <div class="panel-body">
210                     <?php $this->widget('application.modules.home_public.widgets.RecommendedSpacesWidget', array('forceInGuest' => true)); ?>
211                 </div>
212                 <div class="panel-footer guest-previewpanel-footer text-center">
213                     <?php
214                     $radioUrl =  Space::model()->findByPk(5316)->getUrl();
215                     echo CHtml::link(
216                         "More Spheres",
217                         $radioUrl,
218                         array('class' => 'btn btn-info btn-sm btn-preview p-jax')
219                     );
220                     ?>
221                     <div class="clearfix"></div>
222                 </div>
223             </div>
224         <?php
225         $this->endCache();
226     } ?>

Stack Trace

#3
+
 /var/www/site/diibii.com/html/social/protected/modules/home_public/widgets/GuestHomeContentPreviewWidget.php(338): CWidget->render()
333                   Yii::app()->cache->set($cacheId, $contents, HSetting::Get('expireTime', 'cache'));
334             } else {
335 
336                   $contents = $cacheValue;
337             }
338             $this->render("guestHomeContentPreview", array("contents" => $contents));
339       }
340 }
#5
+
 /var/www/site/diibii.com/html/social/protected/modules/home_public/views/home_public/index.php(3): CBaseController->widget()
1 <?php
2 if ($version == 1) {
3     $this->widget('application.modules.home_public.widgets.GuestHomeContentPreviewWidget', array());
4 
5     $this->widget('application.modules.home_public.widgets.RecommendedSpacesWidget', array());
6     $this->widget('application.modules.home_public.widgets.HomePublicStreamWidget', array(
7         'type' => Wall::TYPE_COMMUNITY,
8         'mtype' => 'home'
#9
+
 /var/www/site/diibii.com/html/social/protected/components/Controller.php(241): CController->renderPartial()
236              * @param4 String view path
237              */
238             Yii::app()->clientScript->registerScript("autoAjaxEventFire", "$('body').trigger('ajaxLoaded', ['" . $this->id . "', '" . $moduleID . "', '" . $this->action->id . "', '" . $view . "']);", CClientScript::POS_END);
239         }
240 
241         return parent::renderPartial($view, $data, $return, $processOutput);
242     }
243 
244     /**
245      * @return string the page title. Defaults to the controller name and the action name.
246      */
2026-07-29 22:47:42 Apache/2.4.58 (Ubuntu) Yii Framework/1.1.13