Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mspecht

    (@mspecht)

    Just a follow up on this.

    The meta data for images loaded into the Media Library were not being set.

    If we do a:
    print_r (wp_get_attachment_metadata(ID));

    Where ID is the ID of the image from the Media Library.

    All that is returned is:
    Array ( [width] => 506 [height] => 339 [file] => 2013/08/122399110.jpg [image_meta] => Array ( [aperture] => 0 [credit] => Getty Images/Ingram Publishing [camera] => [caption] => Close-up of a cup of coffee near a newspaper pen and eyeglasses [created_timestamp] => 0 [copyright] => [focal_length] => 0 [iso] => 0 [shutter_speed] => 0 [title] => 122399110 ) )

    On the test site all of the meta data was being displayed.

    In looking further we found that we did not have GD or Imagick installed. Once they were installed and I regenerated the image Thumbnails – using Regenerate Thumbnails plugin the meta data was available. After about 30 seconds the images started to appear for the Related Posts plugin.

    Thread Starter mspecht

    (@mspecht)

    Hi,

    Just a quick update on this. I had our AWS admin have a look and we did not have GD or Imagick installed. Once they were installed and I regenerated the image Thumbnails – using Regenerate Thumbnails plugin the meta data was available.

    Thanks

    Thread Starter mspecht

    (@mspecht)

    Rok,

    I did some further digging.

    The issue seems to be in your function wp_rp_get_image_data as part of the thumbnailer.php.

    The checks:

    if (!$imagedata || !is_array($imagedata) || !isset($imagedata['sizes']) || !is_array($imagedata['sizes'])) {
    		return false;
    	}

    Are failing, in particular the checks around $imagedata[‘sizes’]. I dumped out the $imagedata array and found that the image meta data is missing the sizes array, even after I regenerated the thumbnails. I also tried to remove the Featured Image and re-upload but still the Thumbnails would not work.

    I suspect the issue might be environmental, or in the WordPress core… We have a test site where the plugin is working. The main difference between the two sites is one is an a shared hosting the other is an AWS instance.

    Regards
    Michael

    Thread Starter mspecht

    (@mspecht)

    Hi Rok,

    Thanks for the reply.

    I have regenerated the thumbnails without luck. I have checked the server and the thumbnails exist as files so not sure what is wrong.

    What conditions would result in the default images being displayed – maybe there is a setting/config in our environment which is causing the issues.

    Thanks
    Michael

    Forum: Fixing WordPress
    In reply to: Change homepage

    Cathy,

    I downloaded the theme and had a quick look. On a test site I have the static page worked fine. In the Reading Settings I set a static home page & a blog page the theme automatically supported the link to the static home page. When I added the page number for the blogs it worked like a charm.

    There might be a widget conflict, try turning them all off? Maybe reinstall the theme?

    Sorry I can’t be more help.

    Thread Starter mspecht

    (@mspecht)

    Thanks.

    Is the get_comments function being deprecated?

    Forum: Fixing WordPress
    In reply to: Change homepage

    Cathy,

    Sounds a bit like your theme does not support static pages, which theme are you using?

    With the wp_list_pages you either need to add an include or exclude parameter.

    The current one may look something like:
    <?php wp_list_pages('sort_column=menu_order'); ?>

    You would need to change it to, to exclude your static page,
    <?php wp_list_pages('sort_column=menu_order&exclude=5'); ?>

    Or to, to include your blog page,
    <?php wp_list_pages('sort_column=menu_order&include=45'); ?>

    Where the numbers are the page ids.

    Hi,

    Yes it is possible, the way I have done it is to create page template (https://codex.www.ads-software.com/Pages#Page_Templates) for each page that will contain a list of post for the respective category, in your example football.

    Now you need to edit the page template, a good idea to know a bit about the wordpress loop and PHP before trying this.

    The page template I created was the same as the index.php, except I called query_posts function:
    query_posts('orderby=date&posts_per_page=5&category_name=football');

    The code needs to be placed before the call:
    while (have_posts()) : the_post();

    This process creates a custom wordpress loop with just the posts from your requested category.

    One more trick if you plan to use the Excerpts function you need to also call:

    global $more;
    // set $more to 0 in order to only get the first part of the post
    $more = 0;

    before the while loop.

    Forum: Fixing WordPress
    In reply to: Change homepage

    Cathy,

    When you say the page number is included, are you referring to the list of pages id that you are passing to the wp_list_pages function in your header.php?

    Rgds
    Michael

    Just a quick reply, late I know, but I have been having a similar issue. About a week ago my server started playing up, I had just added another WPMU site and things went south very quickly. After looking at the logs I found wp-cron was locking up the server. After some research I found the following post, https://www.trisweb.com/archives/2007/03/17/wordpress-wp-cronphp-and-bad-behavior-apache-crash/

    I have just upgraded apache, why it was not at the latest is another question. So far so good.

    I got this working today values were:-
    job_name : WordPress Daily Post
    out_name : username from WordPress
    out_pass : password for username
    out_url : https://mysite/xmlrpc.php
    out_time : 23
    out_blog_id : <blank>
    out_cat_id : 15

    While I entered a category the post was created with the default category. Also it took about 30 mins after the sepcified time for the process to run.

Viewing 11 replies - 1 through 11 (of 11 total)