Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

297
Views
Warning: strpos() expects parameter 1 to be string, object given in

I have this problem.

Warning: strpos() expects parameter 1 to be string, object given in /home/faizalia/public_html/wp-includes/post.php on line 277

Warning: preg_match() expects parameter 2 to be string, object given in /home/faizalia/public_html/wp-includes/post.php on line 277

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/faizalia/public_html/wp-includes/post.php on line 278

Line 277 :

if ( $file && 0 !== strpos( $file, '/' ) && ! preg_match( '|^.:\\\|', $file ) && ( ( $uploads = wp_get_upload_dir() ) && false === $uploads['error'] ) ) {

Line 278:

$file = $uploads['basedir'] . "/$file";

Any solutions?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You may want to use

$_FILES["myfilename"]["name"];

or stringify $file using:

(string)$file
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!