WordPress.org

Ready to get started?Download WordPress

Forums

WP Boxer
[resolved] update broke boxer (9 posts)

  1. alexclamon
    Member
    Posted 1 year ago #

    updated boxer and it killed it. getting this message on my page:

    Warning: file_put_contents(/home/mig/public_html/wp-content/plugins/boxer/assets/css/templates.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php on line 179

    All of my boxes have disappeared in wp as well. I need help.

    http://wordpress.org/extend/plugins/boxer/

  2. Coding Our Web
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Alex,

    Looks like some kind of permission related error in which you are not allowed to write content. This is not caused by Boxer but is more like a configuration setting in your environment. Make sure the boxer/assets/css directory is chmod'd to 777 like it says here.

    Also, the boxes are not gone. WP Boxer just uses another post type than the previous versions. You can easily convert them using the Upgrade From Older Version option in Settings | WP Boxer.

    Let me know if this works!

  3. alexclamon
    Member
    Posted 1 year ago #

    it went from bad to worse quickly. There were so many errors being kicked out I could not log into the WP admin side. I had to ftp in and delete the entire directory just to make the site function. I kept a copy of the files, but I am really concerned about the prospect of putting them back. I tried changing the permissions on the files above and it did nothing.

    Any ideas? I have a sandbox version I can stick the files back into if you think that might work, or I can download it fresh and possibly you can tell me which files to copy over to get my boxes back...
    sand box
    http://www.galvtek.com/wpress/

    site (pulled all the text boxes off since this is a live business site
    http://www.moodyinsurancegroup.com/

  4. alexclamon
    Member
    Posted 1 year ago #

    ok, I went and edited permissions, and moved all the files back. I could see the content of the boxes. I logged out and looked at the site and here is what I got instead of the site(see errors below) THis is what happened last time, and wh y I had to remove it to get the site to work at all. Any and all help would be appreciated.

    Warning: file_put_contents(/home/mig/public_html/wp-content/plugins/boxer/assets/css/templates.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php on line 179
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-login.php on line 362
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-login.php on line 374
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 697
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 698
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 699
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 700
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 701
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 702
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 705
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 706
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 707
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 708
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 711
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 712
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 713
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 714
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php:179) in /home/mig/public_html/wp-includes/pluggable.php on line 881
  5. Coding Our Web
    Member
    Plugin Author

    Posted 1 year ago #

    There is still a permissions error on top:

    Warning: file_put_contents(/home/mig/public_html/wp-content/plugins/boxer/assets/css/templates.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php on line 179

    The messages after that, don't matter much. You will need to resolve the permission issue first. Can you try changing line 179 in wpboxer.php to this:

    if ( file_put_contents( dirname(__FILE__). '/assets/css/templates.css', $css ) > 0 ) {

    How about other plugins? I'm sure some of them will write in their own directory as well. Are they not giving you the same issue?

    Greets,
    Mark

  6. Coding Our Web
    Member
    Plugin Author

    Posted 1 year ago #

    Also, I noticed in the sandbox website you are using this shortcode:

    [box set="Divisions"]

    That will not work and has been deprecated since 1.13
    The new format is:

    [wpbp_blocks set="divisions"]

    or

    [boxer set="divisions"]

  7. alexclamon
    Member
    Posted 1 year ago #

    I think I have sorted it out. I had to chmod'd a number of files: hta.access templates.css wpboxer.php and css. I also had to edit the public_html/wp-content/plugins/boxer/wpboxer.php on line 179 to reflect the entire string /home/mig/public_html/wp-content/plugins/boxer/wpboxer.php and started deleting directory levels from the front and loading the file to the server until the error went away. Not elegant but it worked.

    This cost me a lot of money yesterday in lost productivity not to mention time and frustration.

    I am surprised that I have to go edit all the short codes to make the site work. Perhaps finding a way to keep the exiting short codes and chmod the files as part of the update would be possible?

  8. Coding Our Web
    Member
    Plugin Author

    Posted 1 year ago #

    That could easily have been done by adding a shortcode alias to wpboxer.php. Reason why I had to change the shortcode in the first place is conflicts with existing plugins and themes that also use the [box] shortcode.

    The permissions and chmod stuff cannot be "added" to boxer as it is dependant of the used enviroment, which come in all shapes and sizes.
    It would be really bad practice if changes in permissions could be done from within a php script like Boxer.

    Nevertheless, I am glad you got it to work. Can you mail me your e-mail address. I want to compensate you by sending you the Pro version for free, okay?

  9. alexclamon
    Member
    Posted 1 year ago #

    Yes that makes sense. If it had been a bunch of boxes, shortcode would have made sense.

    I appreciate the engaged support and the offer.

    ac

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic