May 4, 2011

How to setup PHP code | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Related Related Topics sp_TopicIcon
How to setup PHP code
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
Tags: php
April 30, 2019
12:56 pm
Avatar
gamesindustrynetwork
New Member
Members
Forum Posts: 2
Member Since:
April 25, 2019
sp_UserOfflineSmall Offline

Just upgraded to CyberSEO Pro and having some issues. I want to use a translation tool and call it via the PHP commands in the Advanced settings. However, even
Login to see the code

does not lead to any result, the title gets published unchanged.
What might I be doing wrong, how am I supposed to enter the code?
Thank you!

April 30, 2019
1:11 pm
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

If you put this code into the "PHP code " box it will be working. But you should take into account that the "Check for duplicate posts by" box must be set to "GUID only". That's in case if your RSS feed has GUIDs.

May 14, 2019
8:38 am
Avatar
gamesindustrynetwork
New Member
Members
Forum Posts: 2
Member Since:
April 25, 2019
sp_UserOfflineSmall Offline

That works fine, as long as I only add

Login to see the code

into the PHP code box. Once I enter

Login to see the code

it gets stuck in the syndicating process with these three lines found in debug.log:

[14-May-2019 05:33:00 UTC] PHP Warning: preg_match() expects parameter 2 to be string, object given in /home/gamesind/public_html/wp-includes/formatting.php on line 1529
[14-May-2019 05:33:00 UTC] PHP Warning: strip_tags() expects parameter 1 to be string, object given in /home/gamesind/public_html/wp-includes/formatting.php on line 1981
[14-May-2019 05:33:00 UTC] PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in /home/gamesind/public_html/wp-content/plugins/cyberseo/cyberseo.php(52) : eval()'d code on line 3

Any idea?

May 14, 2019
11:18 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

This means you have an error in your PHP code. I don't know which one. Perhaps because you are trying to use slanting quotes instead of regular ones for "abc". WordPress always replace them in the text body (including my comment), so if you want to show me the exact PHP code, you must use PHP Syntax Highlighting (there is a special button for that right above the text editor window). E.g.

wrong code:

Login to see the code

correct code:

Login to see the code

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2817

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1627

Posts: 8280

Newest Members:

igor.buzaev, jeremyboucher, lthompson2709, MAC, duty3canada, backlinkmorocco

Administrators: CyberSEO: 3913