erorr formatting.php in word press - php

My WordPress site gives this error in the comments section for products.
my erorr:
erorr.png
And its a complete error :
Warning: strlen() expects parameter 1 to be string, object given in /home3/arsalear/public_html/wp-includes/formatting.php on line 3410
Error line photo in php file :
eror line.png
and :this is the complete file
Help me please....

That's a warning and you can ignore them. I would recommend trying to fix the warning but adding the following to the affected webpage should remove the warning text.
error_reporting(E_ALL ^ E_WARNING);

Related

Notice: unserialize(): Error at offset 0 of 1 bytes in plugin Accordion on WordPress

I use the Accordion plugin of Wordpress in php. But after changing the name of the site, I have errors including the script add-acc.php.
The error message is: Notice: unserialize (): Error at offset 0 of 1 bytes.
The line concerned in the file is:
$ accordion_data = unserialize (get_post_meta ($ post-> ID, 'wpsm_accordion_data', true));
I can not solve this problem. As a result, the publications do not appear anymore.
Can someone help me?
thank you in advance

How to find modx snippet for cache?

Modx generate error in log. How to find original snippet in modx administation panel?
[2019-01-18 13:30:25] (ERROR #
../site/core/cache/includes/elements/modsnippet/105.include.cache.php
: 26) PHP warning: Invalid argument supplied for foreach()
modsnippet/105.include.cache.php : 26
This is the key - please open snippet with ID=105 and find row № 26
In other words you need
/manager/?a=element/snippet/update&id=105

openssl_private_encrypt and "error:0E06D06C...NCONF_get_string:no value"

I can generate all keys fine, when I go to encrypt the file I get an error thrown at me: error:0E06D06C:configuration file routines:NCONF_get_string:no value but googling and checking stackoverflow only shows people with problems generating the keys.
My code: Here
EDIT: The error pops up when I put or die(openssl_error_string()); after openssl_private_encrypt($fileToEnc, $encFile, $privateKey) but I am now getting fwrite() expects parameter 1 to be resource, boolean given in C:\wamp\www\xr1\encrypt.php on line 9
There was an error in my fopen dir somehow and it just broke. It is all good and fixed now, thanks.

CodeIgniter redirect() error

When I test my CodeIgniter redirect code, the following error occurs:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /var/www/allci/CIone/application/config/autoload.php:1)
Filename: helpers/url_helper.php
Line Number: 544
What is causing this?
Output started at (as the error says) /var/www/allci/CIone/application/config/autoload.php on line 1. This means that either autoload.php is a mixed HTML/PHP file (which it probably shouldn't be) or, more likely, autoload.php is has leading white space before it's opening <?php tag.
The < should be the first byte in the file - you need to make sure there are no spaces, tabs, carriage returns etc at the start of the file. You also need to make sure the file does not have a BOM at the start of it.

Joomla: Warning: strpos() [function.strpos]: Empty delimiter in libraries\joomla\environment\uri.php on line 162

After installing Joomla 1.5.x on an IIS 7, instead of seeing the expected sample data I see an un-styled (sample data) page and this message at the very top of the page:
Joomla: Warning: strpos() [function.strpos]: Empty delimiter in [installdir]\libraries\joomla\environment\uri.php on line 162
How can I fix that?
I'm not sure if this is a work-around or the real answer, but setting the variable $live_site = 'base URL' (ex: http://www.site.com) in [install dir]/configuration.php seems to work.

Categories