Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

question-circle METHOD_EXISTS(): ARGUMENT #1 ($OBJECT_OR_CLASS) MUST BE OF TYPE OBJECT|STRING, N

More
2 years 1 month ago #40938 by AGab
Hello,

I am receiving this error message on Petcare template - "METHOD_EXISTS(): ARGUMENT #1 ($OBJECT_OR_CLASS) MUST BE OF TYPE OBJECT|STRING, NULL GIVEN"

The error shows up when I enable "Coming Soon" plugin, nothing appears on the page.

I don't believe it's the Coming Soon plugin because I also use this plugin on two other sites and they are working fine. So I figure it must be the template.

My site is not published yet but if you can help me with the error I appreciate it.

Thx

A

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #40940 by AGab
I've noticed that I've asked this question twice. Why is it not being answered? Thx
a

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #40941 by HaiND
Hi
I'm sorry for the reply later
You can provide information login back-end
I will check it for you
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #40942 by AGab
I'm not totally comfortable with K2 template .. can you please provide the resolution? Thx

OK, will try to because I can't access the website.. will you be able to still look at it although you can only access the backend? It's changed to

I maximized debug and found this:

says I have 6 duplicates

1 SIMPLE NULL NULL NULL NO INDEX KEY COULD BE USED NULL NULL NULL Impossible WHERE noticed after reading const tables

SIMPLE s ref idx_client_id,idx_client_id_home idx_client_id_home 29 const,const 1 Using index condition; Using where; Using filesort
Last edit: 2 years 1 month ago by AGab. Reason: more info

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #40955 by AGab

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #40956 by AGab
I cannot access my webpage and I've identified it as Unite Revolution Slider. Can you tell me if there is something wrong with this code - when I return to 7.4php then "Coming Soon" works. But, when I use PHP 8.0 I receive the error message. So I have reverted back to 7.4php - Coming soon works.. but I can't login to my website where Unite Revolution slider is the home page.


<?php
/**
* @package Unite Revolution Slider for Joomla 1.7-2.5
* @version 1.0
* @author UniteCMS.net
* @copyright (C) 2012- Unite CMS
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
**/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


require_once JPATH_ADMINISTRATOR."/components/com_uniterevolution2/inc_php/framework/include_framework.php";
require_once JPATH_ADMINISTRATOR."/components/com_uniterevolution2/inc_php/revslider_globals.class.php";

//error_reporting(E_ALL); // debug

/**
*
* get revolution slider captions css
*/
function putRevCssCaptions(){
$tableCss = "#__".GlobalsRevSlider::TABLE_CSS_NAME;

$db = new UniteDBRev();
$arrStyles = $db->fetch($tableCss);
$cssStyles = UniteCssParserRev::parseDbArrayToCss($arrStyles, "\n");

header('Content-type: text/css');
echo $cssStyles;
exit();
}



$action = UniteFunctionsRev::getPostGetVariable("action");

if(empty($action)){
echo "action not given";
exit();
}

switch($action){
case "getcaptions":
putRevCssCaptions();
break;
default:
echo "action not found: $action";
exit();
break;
}


?>
Last edit: 2 years 1 month ago by AGab.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #40957 by AGab
Or researching Joomla forum Or this code actually line 70 - a 3rd party extension

/**
*
* add some meta box
* return metabox handle
*/
public static function addMetaBox($title,$content = null, $customDrawFunction = null,$location="post"){

$box = array();
$box["title"] = $title;
$box["location"] = $location;
$box["content"] = $content;
$box["draw_function"] = $customDrawFunction;

70 self::$arrMetaBoxes[] = $box;
}
Last edit: 2 years 1 month ago by AGab.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #40958 by AGab
I No longer need your help. I fixed it

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.033 seconds
Powered by Kunena Forum