• Resolved krca437

    (@krca437)


    Hello,
    Nice plugin, thank you. Unfortunately today when ISP transfered us on new platform with PHP 5.3.28 /MySQL 5.5. acctual version 5.2.2 breaks admin page as same as in post

    http://wordpress.org/support/topic/latest-version-not-working-on-php-5426?replies=16

    [Fatal error: Call to undefined function wp_enqueue_media() in /home/xxxxxxx/public_html/wp-content/plugins/jm-twitter-cards/inc/admin/meta-box/init.php on line 273]

    Could not find ver. 5.1.8 i Repository as it was adviced, or any older.

    And, yes, I know that have to upgrade our WP, but only now on new server have that oportunity. Until that I would like to have TW Cards again if possible. Thank you for advice in advance.

    PS
    WP 3.4.1
    PHP 5.3.28

    https://wordpress.org/plugins/jm-twitter-cards/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 10765487

    (@anonymized-10765487)

    Hi this is not a problem with PHP but with WP. You’re using a very old version of WordPress which I do not recommand.

    But in this case I tried to convince the dev of the metabox (I’m using a framework now) to provide some gracious degradation with a fallback for wp_enqueue_media() which is a function added to the core in 3.5.0 but he does not want to and I kinda understand his point of view.

    While I cannot provide a fallback for his very very old version I can show you how to solve it :

    Open the file init.php on line 273 and replace wp_enqueue_media by :

    wp_enqueue_script('media-upload');
    wp_enqueue_script('thickbox');
    wp_enqueue_style('thickbox');

    That should do the trick.

    Anonymous User 10765487

    (@anonymized-10765487)

    Tested and working. Put this thread on resolved.

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

The topic ‘Problems in PHP 5.3.28’ is closed to new replies.