Wordpress PHP Issue

Discussion in 'PHP' started by UKmember, Mar 19, 2014.

  1. #1
    Hello,
    I've just had my sites transferred to Hosgator and now on my main page of all 6 sites I have this:

    Warning: require_once(wp-content/themes/ADreamtoHost/phpFlickr-3.1/phpFlickr.php) [function.require-once]: failed to open stream: No such file or directory in /home4/clubacti/public_html/clubactivoroadcycling.com/wp-content/themes/ADreamtoHost/home.php on line 330
    
    Fatal error: require_once() [function.require]: Failed opening required 'wp-content/themes/ADreamtoHost/phpFlickr-3.1/phpFlickr.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home4/clubacti/public_html/clubactivoroadcycling.com/wp-content/themes/ADreamtoHost/home.php on line 330
    Code (markup):
    Can someone help me resolve this and get it off from showing on all my sites?

    Thanks
     
    UKmember, Mar 19, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Reinstall phpflickr? Which I assume is a plugin of some sort. Or, reinstall the theme, if it's part of the theme
     
    PoPSiCLe, Mar 19, 2014 IP
  3. UKmember

    UKmember Well-Known Member

    Messages:
    1,588
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    185
    #3
    There isn't a PHPFlickr plugin and the theme is now custom built.
     
    UKmember, Mar 19, 2014 IP
  4. ragamsky

    ragamsky Active Member

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    rename plugins folder under wp-content. and see if its work or not.
     
    ragamsky, Mar 19, 2014 IP
  5. UKmember

    UKmember Well-Known Member

    Messages:
    1,588
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    185
    #5
    How do I do that? What too?
     
    UKmember, Mar 19, 2014 IP
  6. ragamsky

    ragamsky Active Member

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    login to your cPanel, find "File Manager" open your website folder, than wp-content, select plugins, and choose "Rename" on menu.

    DONE!
     
    ragamsky, Mar 19, 2014 IP
  7. RobinInTexas

    RobinInTexas Active Member

    Messages:
    217
    Likes Received:
    14
    Best Answers:
    2
    Trophy Points:
    65
    #7
    It's not the plugin folder, it's the theme folder.

    It would seem a file or folder was not moved properly to the new hosting.

    It does not appear to be related in any way to a plugin.
     
    RobinInTexas, Mar 19, 2014 IP
  8. UKmember

    UKmember Well-Known Member

    Messages:
    1,588
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    185
    #8
    That made it worse so nope it didn't work
     
    UKmember, Mar 19, 2014 IP
  9. UKmember

    UKmember Well-Known Member

    Messages:
    1,588
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    185
    #9
    Is there away to resolve this issue Robin?
     
    UKmember, Mar 19, 2014 IP
  10. RobinInTexas

    RobinInTexas Active Member

    Messages:
    217
    Likes Received:
    14
    Best Answers:
    2
    Trophy Points:
    65
    #10
    Do you have a copy of the original custom theme?
     
    RobinInTexas, Mar 19, 2014 IP
  11. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #11
    PhpFlickr seems to be a class created to interface with Flickr, and probably has been put in the theme by whomever wrote it for some functionality - if there's been a problem when moving the site, reinstall the theme (delete the theme folder, and reinstall it from scratch).
    I've never really understood people moving sites - you don't move the files, you just move the database, and reinstall whichever plugins and themes you have on the new site - much simpler and cleaner, and all dependencies etc. are set from the get go.
     
    PoPSiCLe, Mar 20, 2014 IP
    RobinInTexas likes this.
  12. Handris

    Handris Greenhorn

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #12
    its seem the problem is your themes file. make sure all files already transfered sucsesfully to your new host.
     
    Handris, Mar 20, 2014 IP
  13. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #13
    Can you please check folder name "phpFlickr-3.1" exists in /wp-content/themes/ADreamtoHost/

    if not exists then

    Please open
    /wp-content/themes/ADreamtoHost/home.php

    And remove the below code from line number 330

    require_once(wp-content/themes/ADreamtoHost/phpFlickr-3.1/phpFlickr.php);
    Code (markup):
    Try this I hope problem will be solved

    If Exists then

    Please check folder have the same name and letter capital and small as "phpFlickr-3.1" and then check the file name as well in the folder "phpFlickr.php" you can easily rename both file and folder by double click on the name through filemanager.
     
    salmanshafiq, Mar 20, 2014 IP
  14. RobinInTexas

    RobinInTexas Active Member

    Messages:
    217
    Likes Received:
    14
    Best Answers:
    2
    Trophy Points:
    65
    #14
    I think PoPSiCLe has the right idea. Your custom theme may have stored a setting from your old server that breaks things on the new one. Something like using an absolute path such as /home4/accountname/public_html/sitedomain which breaks that portion of the theme.
     
    RobinInTexas, Mar 20, 2014 IP
  15. startdream

    startdream Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    28
    #15
    you can use 'include' instead 'require_once'
     
    startdream, Mar 20, 2014 IP
  16. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #16
    What I wish for is people actually adressing the problems, instead of the symptoms. How is quenching an error-message fixing anything?
     
    PoPSiCLe, Mar 21, 2014 IP
  17. startdream

    startdream Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    28
    #17
    Could you give me your site? I will help you fix it
     
    startdream, Mar 21, 2014 IP