Forum Replies Created

Viewing 15 replies - 1 through 15 (of 47 total)
  • Thread Starter coreymj78

    (@coreymj78)

    Ok, after trial and error, I have narrowed the problem down to this chunk of code:

    <p><?php echo get_the_excerpt() . $linkmore; ?> </p>

    Which parses the post excerpt and read more link in the widget area. The problem seams to be when it parses the excerpt. Something in this is also causing the wpautop’s to disappear from other blog posts. If I take out “get_the_excerpt()” they magically come back. How can I fix this?

    Thread Starter coreymj78

    (@coreymj78)

    Yep.

    Thread Starter coreymj78

    (@coreymj78)

    Ok, I went into WHM and I am now turning on the GD Library and restarting Apache to see if that fixes the problem. It was turned off.

    Thread Starter coreymj78

    (@coreymj78)

    Here is the error message that appears where the broken image is:

    Warning: getimagesize() expects parameter 1 to be string, object given in /home/coreymj7/public_html/wp-content/themes/parallelus-mingle/framework/utilities/media-functions.php on line 152

    Warning: basename() expects parameter 1 to be string, object given in /home/coreymj7/public_html/wp-content/themes/parallelus-mingle/framework/utilities/media-functions.php on line 153

    Here is the function and parameter $new_img_paththat is having trouble on that post:

    $new_img_size = getimagesize( $new_img_path );
    $new_img = str_replace( basename( $image_src[0] ), basename( $new_img_path ), $image_src[0] );

    Here is the post where the error appears:

    https://flooringlifemagazine.com/flooring-your-life

    Basically this means that the function getimagesize and basename used for resizing images get stuck when trying to fetch the image path via $new_img_path.

    At least that is what I’m guessing. What could cause this?

    Thread Starter coreymj78

    (@coreymj78)

    Thanks for your help.

    Thread Starter coreymj78

    (@coreymj78)

    Ok, I even checked the GUID of the post Attachment and it is also pointing to the correct path:

    https://flooringlifemagazine.com/wp-content/blogs.dir/2/files/room1.jpg

    So why is it not showing up on the front-end and why is BP unable to load the images as well?

    Here is the post:

    https://flooringlifemagazine.com/flooring-your-life

    Now I am seeing an error show up on the page as well saying something about “expecting parameter 1 to be string” and refers to one of my theme files, which again, nothing changed with my theme either, I just backed up everything as it was and restored them on my new VPS.

    Thread Starter coreymj78

    (@coreymj78)

    Ok, this is weird. So I verified that everything was correct in .htaccess as well as wp-config.php, nothing wrong there. Here’s the weird part, I used Firebug to inspect the Featured Image in the the Post Edit screen and it points to the correct file in:

    flooringlifemagazine.com/wp-content/blogs.dir/2/files/room1.jpg

    Then I inspect the broken image of the post on the front-end and this is the link it shows there:

    flooringlifemagazine.com/wp-content/blogs.dir/2/files

    So for some reason, it’s not finding the file name on the front-end. What could be causing this?

    Thread Starter coreymj78

    (@coreymj78)

    I did, only 2 matches came up, both in site_meta table. Deleted both. Same issue.

    Thread Starter coreymj78

    (@coreymj78)

    Also, I already use the plugin mentioned above to automatically add users as desired role to the given blogs, I also use URE to control my role caps, but its not the users that are the problem, its just the author drop downs in the post editor. You do know what I mean by “author drop down” right? The little meta box in the post editor admin screen where you can change / select the author for a given post?

    Thread Starter coreymj78

    (@coreymj78)

    Yes, this appears to be a bug but except for the snippet I posted above (which works in a sense) there has been no remedy for this.

    Using the code above, I as the admin at least now can see ALL users in the author drop down (in post editor) but what’s annoying is that it lists ALL users network wide, not just users on the given blog and it still doesn’t fix the issue for non-admin users. For now I have had to simply remove the author drop down in the post editors.

    Thirdly, I cannot see the author drop downs in the quick edit feature in the post list at all. But at least I’m mostly there. Can other people who have had this issue pipe up here, cuz i know for a fact it’s not just me, I asked my friend who runs several WP multisites and he gets the same thing too.

    Thanks.

    Thread Starter coreymj78

    (@coreymj78)

    Ok, I got this fix from this forum (below), but now it’s showing all the site users (even members and subscribers) in the author drop down. Also, when logging in as one of my Editor’s, they still can’t see anything in the Author drop down (not even the menu itself). How to edit this code to remedy this?

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Thread Starter coreymj78

    (@coreymj78)

    The problem is exactly the same as in this post:

    https://www.ads-software.com/support/topic/author-not-correct?replies=31

    Except the super admin (me) can only see “admin” in the Author drop down in post editors, but Editor’s can see nothing at all (there isn’t even a menu showing in the meta box!

    How strange. Is there a database fix for this? He explains (and I don’t know if this has changed) but the Author drop down does this:

    The code that draws the Post Author pull-down calls a function get_editable_user_ids(), which runs this query:
    SELECT user_id FROM wp_usermeta WHERE meta_key = ‘wp_user_level’ AND meta_value != ‘0’

    How can I fix this issue?
    Thanks!

    Thread Starter coreymj78

    (@coreymj78)

    I just tried again and nothing. It even shows 1 update alert when disabling all plugins.

    What the heck? lol

    Thread Starter coreymj78

    (@coreymj78)

    Tried that ipstenu and it didn’t work ??

    I have restored my DB since then I suppose I could give it another shot.

    Any other ideas?

    Thread Starter coreymj78

    (@coreymj78)

    Never mind, I don’t know whats going on.

Viewing 15 replies - 1 through 15 (of 47 total)