Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 170

Home Forums Theme Support BusiPress custom-styles.css


Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2160

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    okin07
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hello, we just purchased your theme, and we have some questions.

    We are using WordPress 3.8

    In the theme option admin panel, I can see this message: “NOTE: The file “custom-styles.css” located in the theme’s folder > framework > css does not have write permission.”

    I set the permission of the file “custom-styles.css” on 755 via FTP according to the tutorial on your website. But apparently it didn’t solve the issue. When I try to save my changes in the theme option, I have an error icon popping up plus the error message. However, when I set the permission to 777 for testing purposes, the error message disappears, but I still get the error icon when saving.

    Finally I can see that even if I have this error message the changes are effective on the front end of the website.

    How can I get rid of the error message ? Do you have a solution ?
    I couldn’t get any help with the tutorial you provided.

    We also planned to use a child theme, do we need to set permission to this files (in child theme > framework > css) too ?

    Thanks in advance and happy new year.

    #2165

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    skat
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi there,

    1. Did you try to refresh the theme options page? As long as the file is writable the error shouldn’t appear anymore.

    2. Yes, you need to set permissions for that file in the child’s folder too.

    Cheers and Happy New Year!
    Chris

    #2181

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    okin07
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi, 
    1. I reset the theme options page, but nothing change L
    2. Thanks for 777 permits, the message about setting permission disappeared J
    But I still have the pop up error message

    I have another problem ; I can’t change all theme options with the admin panel. In fact, I can change the logo but I can’t change the accent color of the theme. I am disappointed about this bug. 
    I know I can remove that by the CSS, but I really want to do that with the theme option. 

    Can you help me to resolve this problem ? 

    Thanks for the support. 

    #2198

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    skat
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi there,

    I think there’s a problem related to your WordPress server. Can you try this and let me know if it fixes the problem?

    So, here’s what you need to do:

    Go to the theme’s folder > admin > functions and edit the file named “functions.admin.php”.

    Just at the end of the file (from line 150 ro 174) replace this:

    function generate_options_css($newdata) {
     
    /** Define some vars **/
    	$sd_data = $newdata;
    	$uploads = wp_upload_dir();
    	$css_dir = get_template_directory() . '/framework/css/'; // Shorten code, save 1 call
    	
    	/** Save on different directory if on multisite **/
    	if(is_multisite()) {
    		$aq_uploads_dir = trailingslashit($uploads['basedir']);
    	} else {
    		$aq_uploads_dir = $css_dir;
    	}
    	
    	/** Capture CSS output **/
    	ob_start();
    		require($css_dir . 'custom-styles.php');
    		$css = ob_get_clean();
    	/** Write to options.css file **/
    	global $wp_filesystem;
    	WP_Filesystem();
    		if ( ! $wp_filesystem->put_contents( $aq_uploads_dir . 'custom-styles.css', $css, 0644) ) {
    			return true;
    	}
    }

    with this:

    function generate_options_css($newdata) {
    	$sd_data = $newdata;
    	$css_dir = get_stylesheet_directory() . '/framework/css/'; // Shorten code, save 1 call
    	ob_start(); // Capture all output (output buffering)
    
    	require($css_dir . 'custom-styles.php'); // Generate CSS
    
    	$css = ob_get_clean(); // Get generated CSS (output buffering)
    	file_put_contents($css_dir . 'custom-styles.css', $css, LOCK_EX); // Save it
    }

    Save. Done.

    Let me know how’s going.

    Cheers!
    Chris

    #2222

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    okin07
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi,

    I think it’s working now.
    No more error message in the theme option panel when saving, and options seems to be accessible again.

    Many thanks for your work !

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.