This errors says your function is already defined ; which can mean :
- you have the same function defined in two files
- or you have the same function defined in two places in the same file
- or the file in which your function is defined is included two times (so, it seems the function is defined two times)
To help with the third point, a solution would be to use include_once
instead of include
when including your functions.php
file — so it cannot be included more than once.
Related Posts:
- How do I run a file on localhost?
- Difference between require, include, require_once and include_once?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- PHP “or” Syntax
- S_SESSION variable (user role) not recognised
- Is SAJAX dead? What to replace with?
- Invalid column count in CSV input on line 1 Error
- How to check if a string starts with a specified string?
- mysqli_real_connect(): (HY000/2002): No such file or directory
- What is difference between PHP cli and PHP cgi?
- $wpdb->update or $wpdb->insert results in slashes being added in front of quotes
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- phpMyAdmin: secret passphrase?
- Are there dictionaries in php?
- laravel updateOrCreate method
- How to listen messageSent event in laravel 5.5
- Make a HTTPS request through PHP and get response
- How to insert an item at the beginning of an array in PHP?
- PHP Deprecated: Methods with the same name
- How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?
- How do I pass JavaScript variables to PHP?
- Call to undefined function curl_init().?
- How to verify password against database?
- what is a good method to sanitize the whole $_POST array in php?
- pdo – Call to a member function prepare() on a non-object
- Compare given date with today
- Multi-line strings in PHP
- Commands out of sync; you can’t run this command now
- cURL error 60: SSL certificate: unable to get local issuer certificate
- Replace spaces with a dash in a URL
- Are PDO prepared statements sufficient to prevent SQL injection?
- Message: Trying to access array offset on value of type null [duplicate]
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- retrieve data from db and display it in table in php .. see this code whats wrong with it?
- PDO closing connection
- “Valid CSRF Token Required” in Osticket After login?
- Count how many files in directory PHP
- Simple PHP calculator
- Convert from MySQL datetime to another format with PHP
- php foreach with multidimensional array
- header location not working in my php code
- PHP Error: Function name must be a string
- Uncaught Error: Call to undefined function mysql_escape_string()
- Warning: mysqli_query() expects at least 2 parameters, 1 given. What? [duplicate]
- PHP cURL custom headers
- Parsing domain from a URL
- PHP class not found but it’s included
- How to fix the session_register() deprecated issue?
- Laravel 5 Class ‘Collective\Html\HtmlServiceProvider’ not found on AWS
- How to convert string to boolean php
- Are There Any Cron Jobs Alternative?
- How to Create Multiple Where Clause Query Using Laravel Eloquent?
- PHP: How to get referrer URL?
- Warning: A non-numeric value encountered
- Proper Format of iframe in PHP?
- How to find the last day of the month from date?
- php_network_getaddresses: getaddrinfo failed: Name or service not known (0) Failed To Connect..!
- Composer: Command Not Found
- Undefined variable: $_SESSION
- Error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
- What does the PHP error message “Notice: Use of undefined constant” mean?
- The character encoding of the HTML document was not declared
- select * from table where column = value ^ column2= value
- Why I get “ERR_RESPONSE_HEADERS_TOO_BIG” on chrome?
- Object of class mysqli_result could not be converted to string
- Notice: Undefined offset: 0 in
- How to Sort a Multi-dimensional Array by Value
- How to get time difference in minutes in PHP
- How to write a link like which link to the same page in PHP?
- How to write a link like which link to the same page in PHP?
- Insert string at specified position
- How to install a specific version of package using Composer?
- PHP + JQuery – How to use these two together? Please see my example
- A non well formed numeric value encountered
- Data extraction from /Filter /FlateDecode PDF stream in PHP
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Access PHP variable in JavaScript
- How to use data-saferedirecturl in a tag in PHP?
- CSS background images in WordPress
- Reset PHP Array Index
- PHP date yesterday [duplicate]
- Clear cache in Symfony: `cache:clear` or `rm -rf`?
- Is there any difference between aes-128-cbc and aes-128 encryption?
- create php live clock
- Converting a UNIX Timestamp to Formatted Date String
- PHP Call to undefined function
- Formatting a number with leading zeros in PHP
- POST an array from an HTML form without javascript
- WordPress get_template_directory_uri() not returning https and only return http
- where to include a php file
- Can I change a variable in a content part while calling it?
- the_author() not working outside the loop
- code is skipping a div
- Correct and safe way to include php content in my page
- php include not working in custom page
- Using WP functions such as the_title() in an included php file
- How to include a php file in every post and page [duplicate]
- White Screen When Includding A Folder With PHP Files
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file