Hello, im trying to install a recent posts plugin and when i put the recentposts.php in my 'plugins' folder and the languages.php file in 'admin' in the languages file it wont let me install and activate the plugin. It shows the attached error:
Is there anyway of fixing this?
Im on an shared hosting provider and i cannot modify the SQL is there an alternative?
Thanks
What plugin are you using? Also moved this to plugin support.
Replace:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0
);
with:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0,
"description" => "Latest posts"
);
(2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0
);
with:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0,
"description" => "Latest posts"
);
Hello,
Ive changed the code in the latestposts.php file and still no luck
(2016-09-25, 06:01 PM)fishhy29 Wrote: [ -> ] (2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0
);
with:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0,
"description" => "Latest posts"
);
Hello,
Ive changed the code in the latestposts.php file and still no luck
Hang on... ive just refreshed the page and it seems to be activated. Thankyou so much! Really appreciate your help. I will rate you highly
(2016-09-25, 06:01 PM)fishhy29 Wrote: [ -> ] (2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0
);
with:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0,
"description" => "Latest posts"
);
Hello,
Ive changed the code in the latestposts.php file and still no luck
(2016-09-25, 06:01 PM)fishhy29 Wrote: [ -> ] (2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0
);
with:
$new_setting_group = array(
"name" => "latestposts",
"title" => $db->escape_string($lang->settings_name),
"disporder" => $rows+1,
"isdefault" => 0,
"description" => "Latest posts"
);
Hello,
Ive changed the code in the latestposts.php file and still no luck
Hang on... ive just refreshed the page and it seems to be activated. Thankyou so much! Really appreciate your help. I will rate you highly
However, ive just noticed that there is 0 setting available for this plugin...
Have i missed installed something?
Cheers