Unhandled Error!

File_put_contents(): Only 0 of 2743 bytes written, possibly out of free disk space

Document /modules/googleanalytics/classes/googleanalytics_module.php
Document type PHP document
Line 56
Exception class Phpr_PhpException

Code Highlight

			}
 
			$old_ga_stats_files = PATH_APP.'/modules/cms/controllers/cms_settings/stats.htm';
			if(file_exists(@$old_ga_stats_files))
			{
				$new_content = file_get_contents(__DIR__ . '/../partials/stats.htm');
				file_put_contents($old_ga_stats_files,$new_content);
				$new_content = null;
			}
			$old_ga_stats_files = null;
		}
 
		public function grant_oauth2_request_token($params)
# Call Stack Code Document Line
16 file_put_contents('/home/garrattpublishin/public_html/modules/cms/controllers/cms_settings/stats.htm', '<? Phpr_View::beginBlock("head") ?> <link rel="stylesheet" href="modules/cms/resources/css/cms.css?<?= module_build('cms') ?>" type="text/css"/> <? Phpr_View::endBlock() ?> <? Phpr_View::beginBlock("view") ?> <ul class="breadcrumbs"> <li><a href="<?= url('/system/settings') ?>">Settings</a></li> <li><?= $this->app_page_title ?></li> </ul> <div class="form500"> <?= Phpr_Form::openTag(array('id'=>'settings_form')) ?> <? $this->formRender($settings) ?> <?= backend_ajax_button('Save', 'stats_onSave', array(), "update: 'multi', loadIndicator: {hideOnSuccess: true}, preCheckFunction: function(){ if (Number($('prev_pageviews').value) > Number($('Cms_Stats_Settings_keep_pageviews').get('value'))) return confirm('New pageviews number is less than the previous value. Obsolete pageviews data will be deleted. Continue?'); return true; }") ?> <?= backend_button('Cancel', url('system/settings')) ?> <input type="hidden" id="prev_pageviews" value="<?= $settings->keep_pageviews ?>"/> <div class="clear"></div> </form> <script type="text/javascript"> window.addEvent('domready', function(){ $('Cms_Stats_Settings_ga_enabled').addEvent('toggle', function(state){ if (state) $('form_field_ga_enabledCms_Stats_Settings').addClass('separatedField'); else $('form_field_ga_enabledCms_Stats_Settings').removeClass('separatedField'); var fields = ['form_field_ga_siteidCms_Stats_Settings', 'form_field_ga_usernameCms_Stats_Settings', 'form_field_ga_property_idCms_Stats_Settings', 'ga_hint', 'form_field_ga_site_speed_sample_rateCms_Stats_Settings', 'form_field_ga_domain_nameCms_Stats_Settings', 'form_field_ga_enable_doubleclick_remarketingCms_Stats_Settings', 'form_field_ga_client_idCms_Stats_Settings', 'form_field_ga_client_secretCms_Stats_Settings', 'form_field_ga_redirect_urlCms_Stats_Settings','form_field_ga_debugCms_Stats_Settings']; fields.each(function(element){ console.log(element); if (state) $(element).show(); else $(element).hide(); }) }) $('Cms_Stats_Settings_enable_builtin_statistics').addEvent('toggle', function(state){ if (state) $('form_field_enable_builtin_statisticsCms_Stats_Settings').addClass('separatedField'); else $('form_field_enable_builtin_statisticsCms_Stats_Settings').removeClass('separatedField'); var fields = ['form_field_keep_pageviewsCms_Stats_Settings', 'ip_filters']; fields.each(function(element){ if (state) $(element).show(); else $(element).hide(); }); }); }); </script> </div> <? Phpr_View::endBlock() ?>') /modules/googleanalytics/classes/googleanalytics_module.php 56
15 GoogleAnalytics_Module::autoloader('Blog_Post')
14 spl_autoload_call('Blog_Post') /modules/cms/classes/cms_controller.php(383) : eval()'d code 33
13 eval(()) /modules/cms/classes/cms_controller.php 383
12 Cms_Controller->evalWithException('?> </section> </section> <!--<div class="twitter-bar"> <div class="container"> <div class="row"> <?php //$this->render_partial('tdboutique:tweets'); ?> </div> </div> </div>--> <div class="footer"> <div class="container"> <div class="row"> <div class="col-sm-2"> <div class="support"> <? global_content_block('footer1') ?> </div> </div> <div class="col-sm-2"> <div class="categories"> <? global_content_block('footer2') ?> </div> </div> <div class="col-sm-2"> <? global_content_block('footer3') ?> <!--<?php $posts = Blog_Post::create()->list_recent_posts(10, false); ?> <?php if($posts): ?> <h6>From the blog</h6> <ul class="list-chevron links"> <?php foreach($posts as $post): ?> <li> <a href="<?php echo root_url("/blog/post/$post->url_title/"); ?>"> <?php echo h($post->title); ?> </a> <small><?php echo $post->published_date->format('%x'); ?></small> </li> <?php endforeach; ?> </ul> <?php else: ?> &nbsp; <?php endif; ?>--> </div> <div class="col-sm-2"> <? global_content_block('footer4') ?> &nbsp; <?php /* <div class="twitter"> <h6>Twitter feed</h6> <div class="tweets"> </div> </div> */ ?> </div> <div class="col-md-2 col-sm-4"> <? global_content_block('footer5') ?> &nbsp; <?php /* <div class="twitter"> <h6>Twitter feed</h6> <div class="tweets"> </div> </div> */ ?> </div> <div class="clearfix visible-sm"></div> <div class="col-md-2 col-sm-12"> <?php // $this->render_partial('layout:newsletter_subscription'); ?> <?php // $this->render_partial('layout:social_icons'); ?> <div class="gsocial"> <h6>Follow us</h6> <ul class="links"> <li><a href="http://www.facebook.com/pages/Garratt-Publishing/193354644016695"><i class="icon-facebook-sign"></i> Facebook</a></li> <li><a href="https://twitter.com/#!/GarrattPub"><i class="icon-twitter-sign"></i> Twitter</a></li> <li><a href="https://plus.google.com/b/115373611643238411892/"><i class="icon-google-plus-sign"></i> Google+</a></li> <li><a href="http://www.youtube.com/user/JohnGarratt1"><i class="icon-youtube-sign"></i> YouTube</a></li> </ul> </div> </div> </div> </div> </div> <div class="credits"> <div class="container"> <div class="row"> <div class="col-sm-9"> <p>Copyright &copy; <?php echo date('Y'); ?> Garratt Publishing. Prices may vary without notice.</p> </div> <div class="col-sm-3 text-right hidden-phone"> <p>Website by <a href="http://www.summitcreative.com.au/">Summit Creative</a></p> </div> </div> </div> </div> <?php if( function_exists('boutique_setting') ): ?> <?php if( boutique_setting('show_options_panel') ): ?> <div class="options-panel"> <div class="options-panel-content"> <div class="row"> <div class="col-sm-12"> <div class="control-group"> <label for="option_color_scheme" class="control-label">Color scheme</label> <div class="controls"> <select name="option_color_scheme" id="option_color_scheme" class="col-sm-12"> <?php $obj = new Tdboutique_Module; $color_schemes = $obj->getSettingsFieldOptions('tdboutique', 'boutique-settings', 'color_scheme'); ?> <?php foreach($color_schemes as $k => $v): ?> <option value="<?php echo theme_resource_url("/css/color-schemes/$k.css"); ?>"><?php echo $v; ?></option> <?php endforeach; ?> </select> </div> </div> </div> </div> </div> <div class="options-panel-toggle"> <a href="#" title=""><i class="icon-cog"></i></a> </div> </div> <?php endif; ?> <?php endif; ?> <div id="__newsletter_subscribe" class="modal fade" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <hgroup class="title"> <h3>You are now subscribed to our newsletter</h3> <h5>All the latest deals and offers will be making their way to your inbox shortly!</h5> </hgroup> </div> <div class="modal-footer"> <div class="pull-left"> <button data-dismiss="modal" aria-hidden="true" href="#" class="btn btn-small"> Close &nbsp; <i class="icon-ok"></i> </button> </div> </div> </div> </div> </div> </div> </body> <!-- SessionCam Client Integration v6.0 --> <script type="text/javascript"> //<![CDATA[ var scRec=document.createElement('SCRIPT'); scRec.type='text/javascript'; scRec.src="//d2oh4tlt9mrke9.cloudfront.net/Record/js/sessioncam.recorder.js"; document.getElementsByTagName('head')[0].appendChild(scRec); //]]> </script> <!-- End SessionCam --> </html>', 'CMS partial', 'layout:footer', array(0)) /modules/cms/classes/cms_controller.php 1020
11 Cms_Controller->render_partial('layout:footer') /modules/cms/classes/cms_controller.php(383) : eval()'d code 3
10 eval(()) /modules/cms/classes/cms_controller.php 383
9 Cms_Controller->evalWithException('?><?php $this->render_partial('layout:header'); ?> <?php $this->render_page(); ?> <?php $this->render_partial('layout:footer'); ?>', 'CMS template', 'Standard') /modules/cms/classes/cms_controller.php 211
8 Cms_Controller->open(object(Cms_Page), array(7) [0 => 'spirituality', 1 => 'category', 2 => 'youth', 3 => 'category', 4 => 'history', 5 => 'category', 6 => 'bibles']) /controllers/application.php 72
7 Application->On404(()) /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('/category/spirituality/category/youth/category/history/category/bibles') /phproad/system/phproad.php 31
2 include('/home/garrattpublishin/public_html/phproad/system/phproad.php') /boot.php 113
1 require_once('/home/garrattpublishin/public_html/boot.php') /index.php 3