May 4, 2011

Error when pulling feed | CyberSEO Pro | Support Forums

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

Related Topics sp_topicicon
Error when pulling feed
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
May 29, 2011
8:53 pm
Avatar
tonyparra
Guest
Guests

Hello i get this error when pulling the feed, can you tell me what it means?

 

Warning: in_array() [Login to see this link.]: Wrong datatype for second argument in /usr/home/xxx/domains/xxx.com/public_html/wp-content/plugins/CyberSEO/cyberseo-core.php on line 0

May 30, 2011
7:20 am
Avatar
tonyparra
Guest
Guests

Here is the feed, Login to see this link.

May 30, 2011
6:04 pm
Avatar
Admin
Forum Posts: 3102
Member Since:
July 2, 2009
sp_userofflinesmall Offline

Which version of CyberSEO Suite gives you this error message? I've just tried it wit version 5.0 and it looks ok.

May 31, 2011
7:15 am
Avatar
tonyparra
Guest
Guests

yes im using a fresh install of 5.0

May 31, 2011
8:35 am
Avatar
tonyparra
Guest
Guests

Here is what i have in syndicator, the php code i obtained from your tutorial on gfy:

Custom Fields:

screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv

 

PHP Code <?php .. ?>:

// put the site link to paysite into the 'paysite_url' custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['sponsorlink'] = $post ['custom_fields'] ['paysite_url'] = 'Login to see this link.;;
$post ['custom_fields'] ['join_now']='Login to see this link.;;
$post ['custom_fields'] ['paysite_title']='Bootylicious Mag';
// “sponsor” field
$post ['custom_fields'] ['sponsor'] = '<strong>Bootylicious Mag</strong> – The online magazine dedicated to big ass booty! And if “ass” is the subject you know the sistas will represent! Features some well black pornstars and quite a few first timer new faces. They stingy with the free previews, but make up for with the sexiest big booty black and latina girls on the internet.';
// format clip's duration as mm:ss
$post ['custom_fields'] ['duration'] = date ( 'i:s', $post ['custom_fields'] ['duration'] );
// fake random time from 0:20:00 to 2:00:00
$post ['custom_fields'] ['time'] = date ( 'i:s', rand ( 1800,3600) );
// generate random tags. Don't forget to replace tag1, tag2 etc with the prefered tag names. Also don't forget to enable “Create tags from category names” option on the feed settings page
$post ['categories'] [] = array_rand ( array (“tag1”, “tag2”, “tag3”, “tag4” ) );
// create an URL of thumb from it's path and file name
$screen = $post ['custom_fields'] ['screen'];
if (is_array ( $screen )) {
    $post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $screen [rand ( 0, count ( $screen ) – 1 )];
} else {
    $post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $screen;
}
// uncomment the line below to store thumbnails on your server
cseo_store_image ('thumb', $post ['post_title']);
// since FLV videos have no unique GUID's let's use their URL's as post GUID's  
$post ['custom_fields'] ['hostedflv'] = $post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// now let's delete all useless custom fields
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( $post ['custom_fields'] ['screen'] );
unset ( $post ['custom_fields'] ['clip_url'] );
unset ( $post ['custom_fields'] ['flv'] );

May 31, 2011
10:53 am
Avatar
Admin
Forum Posts: 3102
Member Since:
July 2, 2009
sp_userofflinesmall Offline

Ah, that's because of the bug in your code, which has the following line:

$post ['custom_fields'] ['duration'] = date ( 'i:s', $post ['custom_fields'] ['duration'] );

While there is no such custom field as “duration” defined above. Simple remove this line. You will still be getting a warning message (this time because of a small bug in the plugin, which will be fixed today), but not critical error, so the posts will be syndicated properly.

Forum Timezone: Europe/Moscow

Most Users Ever Online: 105

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 81

Freedom: 61

B8europe: 54

saviulisse67: 45

adultdenim: 44

allgoodies: 38

Member Stats:

Guest Posters: 350

Members: 1928

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1331

Posts: 6637

Administrators: CyberSEO: 3102