Welcome, Guest
Username: Password: Remember me

TOPIC: Slow site

Slow site 10 years 1 month ago #503

I installed 2.5 and the site was very slow, to test despubliquei site and returned to normal, already had this problem before, I realized that looking at the forum also set up only to see a friend, I'll be correcting and will check the slowness.
awaiting
The administrator has disabled public write access.

Slow site 10 years 1 month ago #504

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi luisaos
You are using joomla 3.x?
In joomla 3.x: Find and open file: plugis/system/jo_k2_autopost_facebook/jo_k2_autopost_facebook.php
Go to line 61 and changed code function to
// hooks html post
function onAfterRender() {
global $app;
if($app->isAdmin()){
$option = JRequest::getVar('option');
$task = JRequest::getVar('task');
$view = JRequest::getVar('view');
$content_type='k2';

$id = JRequest::getVar('cid');
if($id ==''){
$id = 0;
}

if ($option == 'com_k2' && $view == 'item') {
$body = JResponse::getBody();
preg_match_all ("/<table class=\"sidebarDetails([^`]*?)<\/table>/", $body, $matches);
// var_dump($matches[1][0]);
if(!empty($matches[1][0])){
$output = joautofacebook::facebookformpost($id, $content_type);
$setbody = preg_replace("/<table class=\"sidebarDetails([^`]*?)<\/table>/", "\n\n<table class=\"sidebarDetails".@$matches[1][0]."</table>\n\n".$output, $body);
}else{
$output = joautofacebook::facebookformpost($id, $content_type);
preg_match_all ("/<td id=\"adminFormK2Sidebar\"([^`]*?)>/", $body, $matches);
$setbody = preg_replace("/<td id=\"adminFormK2Sidebar\"([^`]*?)>/", "\n\n<td id=\"adminFormK2Sidebar\"".@$matches[1][0].">\n\n".$output, $body);
}

JResponse::setBody($setbody);
}

$db = JFactory::getDBO();
$query_itempost = 'SELECT * FROM #__joat_postmanager WHERE content_type="'.$content_type.'" AND state=1';
$db->setQuery($query_itempost);
$items = $db->loadObjectList();

foreach($items AS $item){

if($item->state =1 && strtotime(JHTML::date('now', 'Y-m-d H:i')) >= strtotime(date('Y-m-d H:i', strtotime($item->date_published)))){
$message = $item->message;
$title = $item->title;
$description = $item->description;
$image = $item->image;
$url = $item->url;
$access_token = explode(',',$item->post_to);
$db->setQuery('UPDATE #__joat_postmanager SET state =-1 WHERE id ='.$item->id);
if(!$db->query()){
JError::raiseError(500, $db->getErrorMsg());
}
joautofacebook::postfacebook($access_token, $message, $title, $url, $description, $image);

}
}
return true ;
}
}

OR can you send me joomla administrator via contact form? So i can check and help you
Best regards
Bach Pham
The administrator has disabled public write access.

Slow site 10 years 1 month ago #505

joomla I'm using is Joomla! 2.5.19.
The administrator has disabled public write access.

Slow site 10 years 1 month ago #506

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi
Can you send me joomla administrator via contact form? So i can check it
Best regards
Bach Pham
The administrator has disabled public write access.

Slow site 10 years 1 month ago #507

Hi
sent ,
Recalling that the components are disabled, enable necessary.
The administrator has disabled public write access.

Slow site 10 years 1 month ago #508

sorry coms sending the complete data
The administrator has disabled public write access.
Time to create page: 0.054 seconds