Find Jobs
Hire Freelancers

fixing an error - repost

$30-250 USD

Completed
Posted over 10 years ago

$30-250 USD

Paid on delivery
Just checking to see if you're available for what should be? a quick fix I'm guessing with your experience. I have some scripts that were running fine on a server, and then just stopped working. "Fatal error: Call to a member function find() on a non-object in /home/..../public_html/pp/.....php on line 37" The code on line 37 is: foreach($html->find('img') as $element) I had a coder look at it but he says he thinks it's the server. Hosting support says it's a code issue. It doesn't make sense that it was working fine, and then just started having errors, if no changes to the code or server were made. We didn't make any code changes, support said there were no server changes. The last time I know it was working correctly was Monday 2:29 pm est. We installed on another server, and it worked, then stopped for an hour maybe, then worked again and still is, but we have more scripts that won't fit on that server, so we need another one that the scripts work on. We tried a 3rd server for the rest of the scripts, it worked when doing a couple manual tests, but then didn't work anymore and still won't, showing the error above. All 3 servers are from the same hosting company. The scripts are ran by a cron job. They check a web page on another site for new files added, and send an alert email to us when a new one is found. The scripts use proxies, but the proxies seem ok. The 5 lines of code following line 37: { $image = 'https://...../...../'.$element->src; $image1 = substr($image,70); //echo $image1; } The top 5 lines of one of the scripts: <?php set_time_limit(0); require ("[login to view URL]"); require '[login to view URL]'; require_once('[login to view URL]'); I don't know if the server logs could give some info on what happened, or what else. Thanks
Project ID: 5200744

About the project

3 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I can fix that fatal error within next few time for guarantee. For reference and skills, please check out my completed projects I can start right away. Thanks
$50 USD in 3 days
5.0 (3 reviews)
2.1
2.1
3 freelancers are bidding on average $138 USD for this job
User Avatar
Hello, I think it's the site that you scrap for data modified, and for a reason, probably $html variable is empty and therefore, you can't use find function on it without causing an error. You can use echo $html while running this php in browser to see if $html is empty. It this is the case, then we have to adapt code to fit with the new site structure. If this error is caused by a captcha blocking script on the site you scrape, then the problem is much more complicated. Best Regards, Constantin Plaiasu
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Expert web developer here working over 5 years in web development. I got your problem. You are using a script to scrape the third party site. the script is getting problem on it, It should be more optimized so that it works for all IP and server. I can fix this. Please send me message to discuss this project.I am ready to start right now. Thanks :)
$210 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Harrison, United States
5.0
32
Payment method verified
Member since Jun 25, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.