WordPress.org

Ready to get started?Download WordPress

Forums

Post Head Includes
[resolved] Includes disappearing (4 posts)

  1. doclalor
    Member
    Posted 11 months ago #

    This is a great plugin - it's the first javascript/css plugin in WP 3.5.2 that I have found to be compatible with the "Shortcode Exec PHP" plugin. I am very pleased about that!

    But... once I have my css & javascript includes saved with my page, each time I "Update" that page, one of the includes disappears. I just add it again (after each change to the page's content).

    Any idea why?

    Thanks for the plugin!
    ~Brendan

    http://wordpress.org/plugins/post-head-includes/

  2. doclalor
    Member
    Posted 11 months ago #

    The plugin let go of my post head includes again (one css and one js file). When I got to the relevant page on my site today, I received this error message:

    Warning: implode(): Invalid arguments passed in [my site root]/plugins/post-head-includes/item.php on line 93
    
    Warning: implode(): Invalid arguments passed in [my site root]/plugins/post-head-includes/item.php on line 93

    When I went to edit the page, the previously attached files were missing. Once I explicitly reattached them, it worked fine.

    Does the above error provide a clue as to why the plugin drops the files?

    Line 93 is the second line of the following function:

    public function getDeps() {
            if((implode(',',$this->getData('deps')))=='')
                return false;
    
            return $this->getData('deps');
        }

    Thanks! Its functionality is great, and will hopefully be made smooth.
    ~Brendan

  3. Rick Buczynski
    Member
    Plugin Author

    Posted 11 months ago #

    Brendan, Thanks for the good feedback. I'm thankful that you appreciate my work.

    Sorry you're experiencing some issues, though. I can see the problem with that line of code. I guess I was lazily combining operations.

    I'll add it to my to-do list for this Friday, and so you should hopefully see a fix by the weekend.

  4. Rick Buczynski
    Member
    Plugin Author

    Posted 10 months ago #

    Getting back to you, I wasn't able to reproduce your problem. But I looked over the code, and found some potential issues with how it saves the includes to the database. So I corrected them. Try it now by upgrading your plugin to the latest (0.2.1).

    If that doesn't help, please open a new support thread and give me more information; specifically, the entire configuration for each of these files (paths, dependencies, version, in footer, etc ...).

Reply

You must log in to post.

About this Plugin

About this Topic