WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Mobile Pack
[resolved] Images not showing (3 posts)

  1. gilu
    Member
    Posted 3 years ago #

    Images on my Nokia X6 (nor iPhone browser) are not showing.
    If I check the source page it shows the wrong path to the images.
    Instead of http://www.mydomain.com/WP/wp-contetn... it shows http://www.mydomain.com/wp-content/.
    My guess is, there is something wrong with "define('WP_CONTENT_URL', get_option('siteurl' . '/wp-content'));" But I can't put my finger on.

    Any ideas?

    Thanks, Gilbert.

    http://wordpress.org/extend/plugins/wordpress-mobile-pack/

  2. gilu
    Member
    Posted 3 years ago #

    In line 484 of file wpmp_transcoder.php (wordpress-mobile-pack/plugins/wpmp_transcoder/) the $base was wrong.
    It read $base = get_option('home') . "/wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_transcoder/"; instead of $base = get_option('siteurl') . "/wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_transcoder/";

    get_option('siteurl') gets the location of WordPress.
    Unlike get_option('home') which only gets the domain.

    I was glad I could help myself. NO thanks to the support team.

    I guess, this only applies if you do this: Giving_WordPress_Its_Own_Directory

  3. traxtray
    Member
    Posted 2 years ago #

    You are my man!

    Thanks so much for sharing your solution, I am not a coder, but with your precise description it was easy to fix this plugin bug. The problem indeed only arose when I changed my home directory and is easily solved this way.

    Cheers, Thomas

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic