Forum Replies Created

Viewing 15 replies - 16 through 30 (of 56 total)
  • :), first of all don’t hardcode anything into the core (in this case woocommerc) this is technically, morally wrong (and may even kill kittens every time this code runs on your website :D).

    So that’s wrong, and secondly your code is incorrect.

    I see,

    may be you want to have a look at this filter

    woocommerce_email_attachments

    and try to attach your attachment files via this?

    Hi @shropshire,
    If you read my reply above I have clearly mentioned that issue doesn’t lies in wordpress (in this case v3.6), its your plugin or theme which is not updated to meet wordpress 3.6 requirements.

    And this issue happened because of your ignorance, if you would have read the pre-caution before updating the website to latest version 3.6 (take backup before proceeding to updating wordpress), you would not have been in this position. Also you would have to investigate whether your theme / plugins are compatible with v3.6 or not.

    And also if you want help, hire a professional to fix the conflicts between wordpress 3.6 and your theme / plugin, as the errors you are facing (most likely are the same as most of the other people have), after updating to wordpress 3.6 are relevant to code, and it can be few lines of code to hours of work, so don’t expect to get it resolved here.

    WordPress forums are for helping you with troubleshooting issues, fixing obvious bugs (wordpress, themes, plugins etc) etc….

    But they are not meant to replace your development work, for that you need to hire professional to quickly solve your issues.

    like @wpyogi said,

    www.ads-software.com does not have phone support – the only support is here – and it’s 100% volunteer

    and if you need help troubleshooting then you are welcome (but you will have to open a new thread for that).

    Hi @chris-thomas,
    I have installed all of the above plugins and tested with wordpress 3.6 and they work fine (no obvious issue).

    I believe issue lies in the theme you are using, is it custom coded or you are using free or premium purchased theme?

    Let me know what is the theme name and I will suggest you accordingly.

    Thread Starter saas

    (@saas)

    One more thing I am noticing,

    I have cloned live site to my local server (WAMP) and I added new image into media using POST EDIT screen “Add Media” button it showed me all the custom sizes after uploading.

    But when I do same procedure on live site it only showing me FULL size image ??

    Is there anything related to this functionality which requires PHP libraries or extensions installed which causing wordpress to not show custom sizes.?????

    Note: In local server its also showing preview image on crop & scale screen link:

    wp-admin/post.php?post=714&action=edit&image-editor

    What is this????

    Thread Starter saas

    (@saas)

    I just finished another phase of debugging core, and so far this is my analysis.

    I have narrowed it down to

    wp-includes/media.php

    function wp_prepare_attachment_for_js($attachment);

    and
    foreach ($possible_sizes as $size => $label) {}

    if I dump this $possible_sizes it shows all my custom sizes, but

    if ($downsize = apply_filters(‘image_downsize’, false, $attachment->ID, $size)) {}

    this doesn’t seem to work????

    So anybody?????

    Thread Starter saas

    (@saas)

    @wpyogi I have done this

    Yes, you need to test this by turning off ALL plugins and switching to the default theme.

    with wordpress 3.5.2 and did it again with 3.6 no luck.

    Thread Starter saas

    (@saas)

    I just did some debugging again and here is the data,

    Request:
    action=query-attachments
    &post_id=some-id
    &query%5Borderby%5D=date
    &query%5Border%5D=DESC
    &query%5Bposts_per_page%5D=40
    &query%5Bpaged%5D=1
    Response:
    {
        "success": true,
        "data": [{
            "id": some-id,
            "title": "some-title",
            "filename": "some-title.png",
            "sizes": {
                "full": {
                    "url": "https://mysite.com/wp-content/uploads/2013/07/some-title.png",
                    "height": 373,
                    "width": 1043,
                    "orientation": "landscape"
                }
            },
            "height": 373,
            "width": 1043,
        }]
    }

    I am debugging more, but maybe you could help me how I can proceed further.

    Note: according to this response, its only fetching single size (full) so need to know why not all sizes.

    Note: I am also using “Simple Image Sizes” plugin, maybe it has screwed something, but I also tried deactivating and still same issue.

    Note: this is partial response data, I can’t show all the data here.

    Thread Starter saas

    (@saas)

    Sorry @esmi I can’t provide url here.

    But the problem is in backend (wp-admin -> dashboard) what good it will be to have url?

    Thread Starter saas

    (@saas)

    Several hours ago I updated wordpress to 3.6, and activated twenty thirty theme and de-activated all the plugins and I still can’t make both work.

    1) Preview Image on cropping area (image editor)
    2) Showing all the image sizes on media manager “Insert Image” section.

    both mentioned above :(.

    Thread Starter saas

    (@saas)

    I would be happy to know the findings ;),

    *Finders Crossed*

    @chris-thomas,

    Haven’t you heard about don’t do anything directly on live server (sites)? First test on test / staging server and if things are fine then make those changes to live site.

    Anyway as you already have done a blunder, I should guide you,

    1) WordPress 3.6 brought lots of core changes from which one of those was Post Format related,

    Post Formats UI is exiting core, will live as a plugin

    https://core.trac.www.ads-software.com/ticket/21941

    and also I tested it on my local server the function “get_post_format_slugs()” and its counterparts are gone from core.

    I tried to find an aiding plugin which supplements for core missing functionality but so far found none.

    So my suggestion to you, hire a professional (spend few bucks), and ask him to change your theme to the one which works with latest 3.6 (3.6 comes with a twenty thirty theme I think you will like it) so may be try that (and it will 100% work with wp 3.6)

    Thread Starter saas

    (@saas)

    Yes I did change theme, and used default “Twenty Twelve” theme, and if I am using default theme and its not working means there is no point in checking functions.php.

    Also I am noticing issue with my image sizes list, as when I am inserting image into the post, its no longer showing me all sizes (default and custom) as a list in the media manager. Like bellow image shows

    https://postimg.org/image/ohn581xir/

    Its only showing me full size, but no other sizes, according to solve this first I debugged code and found no trace of cause then I re-did all the site (re-created posts etc) and it was fine but today when I went to modify image sizes noticed this issue again.

    But when I review source I can see all the size listed there like:

    <# if ( 'undefined' !== typeof data.sizes ) { #>
    	<label class="setting">
    	<span>Size</span>
    	<select class="size" name="size"
    	data-setting="size"
    	<# if ( data.userSettings ) { #>
    	data-user-setting="imgsize"
    	<# } #>>
    	<#
    	var size = data.sizes['thumbnail'];
    	if ( size ) { #>
    	<option value="thumbnail" >
    	Thumbnail &ndash; {{ size.width }} &times; {{ size.height }}
    	</option>
    	<# } #>
    	<#
    	var size = data.sizes['medium'];
    	if ( size ) { #>
    		<option value="medium" >
    	Medium &ndash; {{ size.width }} &times; {{ size.height }}
    	</option>
    	<# } #>
    	and so on.......................
    									</select>
    			</label>
    		<# } #>

    @texxs I have just upgraded (couple of days ago) my clients website to 3.5.2 and woocommerce .13, and it works fine. Maybe you are using it with combination of third party plugins which are causing it to not work, install it on fresh wordpress, with default theme twenty ten, elevan or twelve :D, and play with plugin and see if it still not working then post the issue you are seeing (javascript issue or fatal errors in php etc). Without actual error code nobody can help you.

Viewing 15 replies - 16 through 30 (of 56 total)