WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PDF upload problems (18 posts)

  1. jrichards1988
    Member
    Posted 1 year ago #

    I just installed WordPress and am learning to use it. I have never done anything like this before so most of the language is pretty new to me.

    Here is the problem that I am running into. I have uploaded the PDF into the media gallery. I linked it to my page, but when I try to view it on the test site I get this error.

    ( ! ) Catchable fatal error: Object of class WP_Error could not be converted to string in C:\wamp\www\testsite\wp-content\themes\responsive\includes\functions.php on line 452
    Call Stack
    # Time Memory Function Location
    1 0.0018 365384 {main}( ) ..\index.php:0
    2 0.0029 369072 require( 'C:\wamp\www\testsite\wp-blog-header.php' ) ..\index.php:17
    3 0.5774 21730168 require_once( 'C:\wamp\www\testsite\wp-includes\template-loader.php' ) ..\wp-blog-header.php:16
    4 0.5834 21776488 include( 'C:\wamp\www\testsite\wp-content\themes\responsive\single.php' ) ..\template-loader.php:47
    5 0.7503 21908104 responsive_breadcrumb_lists( ) ..\single.php:31

    I am running Wampserver. I don't know if that makes a difference. Thank you in advance for your help.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you edited the theme in any way? You could try uploading a fresh copy of the theme's folder to wp-content/themes.

  3. jrichards1988
    Member
    Posted 1 year ago #

    Pardon my ignorance, but where would I get a fresh copy? Do I just download it again?

  4. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Yes, just download the theme again.

  5. jrichards1988
    Member
    Posted 1 year ago #

    Still having the same problem, but I browsed the forum and figured it would be best to repost my question at themeid.com since I am using the responsive theme. Thank you for your help!

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I would be really surprised if an unedited copy of this theme was causing the problem. If you have not edited the theme yourself, I can only guess that you have a corrupt copy.

    Drop a fresh, unpacked, copy of the theme's folder into wp-content/themes. You can download the theme via http://wordpress.org/extend/themes/responsive

  7. jrichards1988
    Member
    Posted 1 year ago #

    Still getting the same thing.

    ( ! ) Catchable fatal error: Object of class WP_Error could not be converted to string in C:\wamp\www\testsite\wp-content\themes\responsive\includes\functions.php on line 452
    Call Stack
    # Time Memory Function Location
    1 0.0015 365384 {main}( ) ..\index.php:0
    2 0.0022 369072 require( 'C:\wamp\www\testsite\wp-blog-header.php' ) ..\index.php:17
    3 0.5275 21729104 require_once( 'C:\wamp\www\testsite\wp-includes\template-loader.php' ) ..\wp-blog-header.php:16
    4 0.5350 21775424 include( 'C:\wamp\www\testsite\wp-content\themes\responsive\single.php' ) ..\template-loader.php:47
    5 0.6596 21906904 responsive_breadcrumb_lists( ) ..\single.php:31

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    What happens if you switch to the Twenty Twelve theme?

  9. jrichards1988
    Member
    Posted 1 year ago #

    It works perfectly.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Are you using the latest version of the Responsive theme?

  11. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Another thought - what version of PHP are you running locally?

  12. jrichards1988
    Member
    Posted 1 year ago #

    I am using the latest version of responsive. PHP version is 5.3.13

  13. jrichards1988
    Member
    Posted 1 year ago #

    I re installed the responsive theme twice. Once by getting it from the link on the wordpress site, and again following your link and instructions.

  14. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I've pinged the theme's developer about this one. It's got me baffled.

  15. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    Hi,

    Let's continue here please :)

    Emil

  16. Tom Hoeflich
    Member
    Posted 1 year ago #

    Hi,

    There is a great page to upload PDFs and then you can link it on your page.
    The name of the page is http://www.yumpu.com

    Tom

  17. jrichards1988
    Member
    Posted 1 year ago #

    I discovered my problem. A stupid oversight. I was clicking the add media button, and adding my PDF. In the twenty twelve theme it would take me to another page where I would click the link again, which would open my PDF. In the responsive them I would just get an error. I just had to go to my library and copy the file URL and use it for my link. I appreciate all of your help.

  18. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    No problem, please close the topic as resolved if there's nothing else.

    Thanks,
    Emil :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags