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
18 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
17 GoogleAnalytics_Module::autoloader('Core_ModuleSettings')
16 spl_autoload_call('Core_ModuleSettings') /modules/tdboutique/classes/tdboutique_module.php 45
15 Tdboutique_Module::get_setting('site_name', null) /modules/tdboutique/init/autoload.php 4
14 boutique_setting('site_name') /modules/cms/classes/cms_controller.php(383) : eval()'d code 20
13 eval(()) /modules/cms/classes/cms_controller.php 383
12 Cms_Controller->evalWithException('?><!DOCTYPE html> <html dir="ltr" lang="en" class="no-js"> <head> <base href="<?php echo root_url('/', true); ?>" /> <meta charset="UTF-8"> <meta name="description" content="<?php echo $this->page->description; ?>" /> <meta name="keywords" content="<?php echo $this->page->keywords; ?>" /> <?php if(isset($product)): ?> <?php $images = $product -> om('images'); ?> <?php if($images->count > 0):?> <meta property="og:image" content="http://garrattpublishing.com.au<?php echo $product -> image_url(0, 480, 'auto'); ?>" /> <?php endif; ?><?php endif; ?> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title><?php echo $this->page->title; ?> | <?php echo function_exists('boutique_setting') ? boutique_setting('site_name') : 'La Boutique'; ?></title> <?php $color_theme = Phpr::$request->getField('color_scheme'); if(! $color_theme) { if( function_exists('boutique_setting') && boutique_setting('color_scheme') ) { $color_theme = boutique_setting('color_scheme'); } else { $color_theme = 'turquoise'; } } if(isset($_SESSION["selected_color_scheme_file"])){ $color_css_file= $_SESSION["selected_color_scheme_file"]; }else { $color_css_file="@css/color-schemes/$color_theme.css"; } echo $this->css_combine( array( '@css/bootstrap.min.css', '@css/font-awesome321.css', '@css/flexslider.css', '@css/custom.css', $color_css_file ) ); ?> <?php if( function_exists('boutique_setting') ): ?> <?php if( boutique_setting('show_options_panel') ): ?> <link href="<?php echo $color_css_file; ?>" rel="stylesheet" type="text/css" id="color_scheme"> <?php endif; ?> <?php endif; ?> <link rel="icon" href="<?php echo theme_resource_url('/favicon.ico'); ?>" type="image/x-icon" /> <link href="https://fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Shadows+Into+Light" rel="stylesheet" type="text/css"> <!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> --> <script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script> <?php echo $this->js_combine( array( '@js/jquery-1.8.3.min.js', 'ls_core_jquery', '@js/jquery-ui-1.10.2.custom.js', '@js/jquery.easing-1.3.min.js', '@js/bootstrap.js', '@js/jquery.isotope.min.js', '@js/jquery.flexslider.js', '@js/jquery.image_chooser.js', '@js/jquery.tdautocomplete.js', '@js/jquery.elevatezoom.js', '@js/jquery.sharrre-1.3.4.js', '@js/jquery.gmap3.js', '@js/jquery.cookie.js', '@js/imagesloaded.js', '@js/jquery.tweet.js', '@js/la_boutique.js' ), array( 'src_mode' => true ) ); ?> <style> .no_float{ float:none; } </style> </head> <body class="no_float"> <div class="wrapper"> <div class="header"> <div class="top"> <div class="container"> <div class="row"> <div class="col-sm-12 hidden-phone"> <ul class="list-inline pull-right top-links"> <li class="resizer normal"><a href="#">A</a></li> <li class="resizer medium"><a href="#">A+</a></li> <li class="resizer large"><a href="#">A++</a> &nbsp; <small>|</small> </li> <li> <a href="<?php echo root_url('/blog'); ?>" title="Blog">Blog</a> </li> <?php if($this->customer):?> <li> <a href="<?php echo root_url('/orders'); ?>" title="Order history">Order history</a> </li> <li> <a href="<?php echo root_url('/change-password'); ?>" title="Change password">Change password</a> </li> <li> <a href="<?php echo root_url('/logout'); ?>" title="Logout">Logout</a> </li> <?php else: ?> <li> <a href="<?php echo root_url('/login-register'); ?>" title="Login / Register">Login / Register</a> </li> <?php endif; ?> </ul> </div> </div> </div> </div> <div class="bottom"> <div class="container"> <div class="row"> <div class="col-sm-8"> <div class="row"> <div class="col-sm-2"> <div class="logo"> <a href="<?php echo root_url('/'); ?>" title="&larr; Back home"> <img src="<?php echo theme_resource_url('img/logo.png'); ?>" alt="Garratt Publishing" /> </a> </div> </div> <div class="col-sm-10"> <nav class="navigation"> <div class="row"> <h2>Australia’s leading provider of Catholic and Christian books.</h2> <div class="category-list"> <div class="hidden-phone"> <ul class="main-menu desktop-nav"> <?php $cats = Shop_Category::create()->list_root_children('front_end_sort_order') ?> <? foreach($cats as $cat): ?> <li class="<?php echo h($cat->url_name); ?>"> <!--zach - added /1/ at the end of the url, or blank ajax handler error--> <a href="<?php echo $cat->page_url('/category'); ?>/1/" title="<?php echo h($cat->name); ?>"><?php echo h($cat->name); ?></a> <?php $this->render_partial('shop:category_list', array('parent_category'=>$cat, 'make_primary'=>true)); ?> </li> <?php endforeach; ?> <li class="navdivider nav-about"> <a href="<?php echo root_url('/about'); ?>" title="About us">About us</a> </li> <li class="nav-contact"> <a href="<?php echo root_url('/contact-us'); ?>" title="Contact us">Contact us</a> </li> </ul> </div> <div class="visible-xs"> <?php $categories = Shop_Category::create()->list_root_children('front_end_sort_order'); ?> <select class="mobile-nav"> <option value="" selected="selected">Go to&hellip;</option> <option value="<?php echo root_url('/'); ?>">Home</option> <?php foreach ($categories as $category): ?> <option value="<?php echo $category->page_url('/category'); ?>"><?php echo h($category->name); ?></option> <?php endforeach; ?> </select> </div> </div> </div> </nav> </div> </div> </div> <div class="col-sm-4"> <div class="row"> <div class="col-sm-10"> <div class="search"> <div class="qs_s"> <!--hardcoding 1 here to get the first search result page to have 1 in url - otherwise the ajax handler for add to cart doesn't work--> <form method="get" action="<?php echo root_url('/search/1/'); ?>"> <input type="text" name="query" id="query" placeholder="Search as you type&hellip;" autocomplete="off" class="form-control" value="<?php echo isset($query) ? $query : ''; ?>"> <span class="searchbtn"><i class="icon-search"></i></span> </form> <div id="autocomplete-results"> </div> </div> </div> </div> <div class="col-sm-2"> <div class="mini-cart"> <?php $this->render_partial('shop:mini_cart'); ?> </div> </div> </div> </div> </div> </div> </div> </div> <section class="main"> <div class="container"> <div class="visible-desktop"> <?php if($this->page->url != '/'): ?> <ul class="breadcrumb pull-right"> <li> <a href="<?php echo site_url('/'); ?>">Home</a> </li> <?php $this->render_block('breadcrumb'); ?> </ul> <?php endif; ?> </div> </div> <section class="<?php echo $this->page->directory_name; ?>"> ', 'CMS partial', 'layout:header', array(0)) /modules/cms/classes/cms_controller.php 1020
11 Cms_Controller->render_partial('layout:header') /modules/cms/classes/cms_controller.php(383) : eval()'d code 1
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 => 'modern-spiritual-masters', 3 => 'category', 4 => 'youth', 5 => 'category', 6 => 'personal-growth']) /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/modern-spiritual-masters/category/youth/category/personal-growth') /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