Results 1 to 4 of 4

Thread: Recommendations error when user updates preferences

  1. #1
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts

    Recommendations error when user updates preferences

    I dont think this has been reported yet or if its an isolated issue on my end despite this being an upgrade, when subscribed as a job_seeker and updating the Preferences from the Dashboard, I get the following error:

    PHP Code:

    Job Recommendations

    Warning
    file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /.../wp-content/themes/jobroller/includes/theme-functions.php on line 750

    Warning
    file_get_contents(http://maps.google.com/maps/geo?q=Montreal&output=json&language=en&region=CA) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /.../wp-content/themes/jobroller/includes/theme-functions.php on line 750 
    You don't have any recommendations: try adjusting your preferences in order to get more results.



    I cross referenced the line 750 and found this:
    PHP Code:
    if ($cached) :
                
    $address $cached;
            else :
                
    $address json_decode((file_get_contents($address)), true);
                if (
    is_array($address)) wp_cache_set'geo_'.urlencode($location) , $address ); 
            endif;

               if (
    is_array($address)) :
               
                   
    $full_address $address['Placemark'][0]['address']; 
    Is this theme-functions.php file supposed to have any special permission setup?? Mine is set to 644 like most of the other files under the Includes folder.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,993
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. The Following User Says Thank You to jomarkosabel For This Useful Post:

    Fanatic (July 30th, 2011)

  4. #3
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #4
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    885
    Thanks
    309
    Thanked 57 Times in 51 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. The Following User Says Thank You to Fanatic For This Useful Post:

    tinygiantstudios (July 30th, 2011)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just bought ClassiPress any plugin recommendations?
    By mkcoy in forum Help Using ClassiPress
    Replies: 14
    Last Post: August 7th, 2011, 11:33 AM
  2. Replies: 4
    Last Post: July 30th, 2011, 08:09 PM
  3. Any recommendations for Facebook Like Buton?
    By trick in forum ClassiPress General Discussion
    Replies: 7
    Last Post: April 23rd, 2011, 09:12 AM