ErrorException(E_WARNING)

First parameter must either be an object or the name of an existing class

/var/www/html/feibiaotong.cn/wp-content/themes/enfold/src/Models/Archive.php

  • Stack trace
  • Data
  • Cookie
  • Session
  • Server

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

                        

$posts->param('cat', $tab->term_id);

}

$params = $posts->getParams();

$posts->param('paged', $this->getPaged());

$result = [

'posts' => $posts->get(),

'count' => Post::where()->merge($params)->limit(-1)->count(),

];

$result['pages'] = ceil($result['count'] / $limit);

return $result;

}

public function isCatType()

{

return property_exists($this->object(), 'taxonomy') && $this->object()->taxonomy === 'cat_type';

}

public function getPaged()

{

return max(1, $_GET['pg'] ?? 1);

}

public function paginate($pages)

{

return paginate_links([

'format' => '?pg=%#%',

'prev_next' => false,

'total' => $pages,

'current' => $this->getPaged(),

]);

}

/** 页面查询对象 */

public function object()

{

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

                        

$posts->param('cat', $tab->term_id);

}

$params = $posts->getParams();

$posts->param('paged', $this->getPaged());

$result = [

'posts' => $posts->get(),

'count' => Post::where()->merge($params)->limit(-1)->count(),

];

$result['pages'] = ceil($result['count'] / $limit);

return $result;

}

public function isCatType()

{

return property_exists($this->object(), 'taxonomy') && $this->object()->taxonomy === 'cat_type';

}

public function getPaged()

{

return max(1, $_GET['pg'] ?? 1);

}

public function paginate($pages)

{

return paginate_links([

'format' => '?pg=%#%',

'prev_next' => false,

'total' => $pages,

'current' => $this->getPaged(),

]);

}

/** 页面查询对象 */

public function object()

{

1

2

3

4

5

6

7

8

9

10

11

                        

<?php

get_header();

if (Imon\App::getInstance()->make('archive')->isCatType()) {

get_template_part('templates/pages/archive', 'type');

} else {

get_template_part('templates/pages/archive');

}

get_footer();

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

                        

}

break;

}

}

if ( ! $template ) {

$template = get_index_template();

}

/**

* Filters the path of the current template before including it.

*

* @since 3.0.0

*

* @param string $template The path of the template to include.

*/

$template = apply_filters( 'template_include', $template );

if ( $template ) {

include $template;

} elseif ( current_user_can( 'switch_themes' ) ) {

$theme = wp_get_theme();

if ( $theme->errors() ) {

wp_die( $theme->errors() );

}

}

return;

}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

                        

<?php

/**

* Loads the WordPress environment and template.

*

* @package WordPress

*/

if ( ! isset( $wp_did_header ) ) {

$wp_did_header = true;

// Load the WordPress library.

require_once __DIR__ . '/wp-load.php';

// Set up the WordPress query.

wp();

// Load the theme template.

require_once ABSPATH . WPINC . '/template-loader.php';

}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

                        

<?php

/**

* Front to the WordPress application. This file doesn't do anything, but loads

* wp-blog-header.php which does and tells WordPress to load the theme.

*

* @package WordPress

*/

/**

* Tells WordPress to load the WordPress theme and output it.

*

* @var bool

*/

define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */

require __DIR__ . '/wp-blog-header.php';

GET

POST

Files

SERVER_SOFTWARE
nginx/1.20.2
REQUEST_URI
/date/2022/02
USER
apache
HOME
/usr/share/httpd
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
feibiaotong.cn
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_STATUS
200
SERVER_NAME
www.feibiaotong.cn
SERVER_PORT
443
SERVER_ADDR
172.19.13.57
REMOTE_PORT
51178
REMOTE_ADDR
3.236.52.68
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/var/www/html/feibiaotong.cn
DOCUMENT_URI
/index.php
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/var/www/html/feibiaotong.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1664816033.5871
REQUEST_TIME
1664816033

ErrorException(E_NOTICE)

Trying to get property 'name' of non-object

/var/www/html/feibiaotong.cn/wp-content/themes/enfold/templates/slider/layerslider_18.php

  • Stack trace
  • Data
  • Cookie
  • Session
  • Server

1

2

3

4

5

6

7

8

9

10

11

12

                        

<div id="layerslider_18" class="ls-wp-container fitvidsignore"

style="width:2198px;height:413px;margin:0 auto;margin-bottom: 0px;">

<div class="ls-slide" data-ls="kenburnsscale:1.2;">

<img width="2198" height="415" src="<?php echo Imon\App::getInstance()->image('success-banner.png'); ?>" class="ls-bg"

style="top:174px;left:539px;text-align:initial;font-weight:400;font-style:normal;text-decoration:none;wordwrap:false;opacity:1;"

class="ls-l" data-ls="offsetxin:left;">

<div style="top:171px;left:901px;text-align:initial;font-weight:400;font-style:normal;text-decoration:none;wordwrap:false;opacity:1;font-size:41px;line-height:44px;width:499px;height:156px;"

class="ls-l">

<h1 style="color:grey;"><?php echo get_queried_object()->name; ?></h1>

</div>

</div>

</div>

1

2

3

4

5

6

7

8

9

10

11

12

                        

<div id="layerslider_18" class="ls-wp-container fitvidsignore"

style="width:2198px;height:413px;margin:0 auto;margin-bottom: 0px;">

<div class="ls-slide" data-ls="kenburnsscale:1.2;">

<img width="2198" height="415" src="<?php echo Imon\App::getInstance()->image('success-banner.png'); ?>" class="ls-bg"

style="top:174px;left:539px;text-align:initial;font-weight:400;font-style:normal;text-decoration:none;wordwrap:false;opacity:1;"

class="ls-l" data-ls="offsetxin:left;">

<div style="top:171px;left:901px;text-align:initial;font-weight:400;font-style:normal;text-decoration:none;wordwrap:false;opacity:1;font-size:41px;line-height:44px;width:499px;height:156px;"

class="ls-l">

<h1 style="color:grey;"><?php echo get_queried_object()->name; ?></h1>

</div>

</div>

</div>

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

728

                        

/*

* This use of extract() cannot be removed. There are many possible ways that

* templates could depend on variables that it creates existing, and no way to

* detect and deprecate it.

*

* Passing the EXTR_SKIP flag is the safest option, ensuring globals and

* function variables cannot be overwritten.

*/

// phpcs:ignore WordPress.PHP.DontExtract.extract_extract

extract( $wp_query->query_vars, EXTR_SKIP );

}

if ( isset( $s ) ) {

$s = esc_attr( $s );

}

if ( $require_once ) {

require_once $_template_file;

} else {

require $_template_file;

}

}

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

680

681

682

683

684

685

686

687

688

689

690

691

692

                        

function locate_template( $template_names, $load = false, $require_once = true ) {

$located = '';

foreach ( (array) $template_names as $template_name ) {

if ( ! $template_name ) {

continue;

}

if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {

$located = STYLESHEETPATH . '/' . $template_name;

break;

} elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {

$located = TEMPLATEPATH . '/' . $template_name;

break;

} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {

$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;

break;

}

}

if ( $load && '' != $located ) {

load_template( $located, $require_once );

}

return $located;

}

/**

* Require the template file with WordPress environment.

*

* The globals are set up for the template file to ensure that the WordPress

* environment is available from within the function. The query variables are

* also available.

*

* @since 1.5.0

*

* @global array $posts

* @global WP_Post $post Global post object.

* @global bool $wp_did_header

* @global WP_Query $wp_query WordPress Query object.

* @global WP_Rewrite $wp_rewrite WordPress rewrite component.

* @global wpdb $wpdb WordPress database abstraction object.

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

                        

$templates = array();

$name = (string) $name;

if ( '' !== $name ) {

$templates[] = "{$slug}-{$name}.php";

}

$templates[] = "{$slug}.php";

/**

* Fires before a template part is loaded.

*

* @since 5.2.0

*

* @param string $slug The slug name for the generic template.

* @param string $name The name of the specialized template.

* @param string[] $templates Array of template files to search for, in order.

*/

do_action( 'get_template_part', $slug, $name, $templates );

locate_template( $templates, true, false );

}

/**

* Display search form.

*

* Will first attempt to locate the searchform.php file in either the child or

* the parent, then load it. If it doesn't exist, then the default search form

* will be displayed. The default search form is HTML, which will be displayed.

* There is a filter applied to the search form HTML in order to edit or replace

* it. The filter is {@see 'get_search_form'}.

*

* This function is primarily used by themes which want to hardcode the search

* form into the sidebar and also by the search widget in WordPress.

*

* There is also an action that is called whenever the function is run called,

* {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the

* search relies on or various formatting that applies to the beginning of the

* search. To give a few examples of what it can be used for.

*

* @since 2.7.0

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

                        

$(function() {

var select = '<?php echo $config['id']; ?>';

if (typeof $.fn.layerSlider == "undefined") {

if (window._layerSlider && window._layerSlider.showNotice) {

window._layerSlider.showNotice(select, 'jquery');

}

} else {

$("#" + select).layerSlider({

sliderVersion: '6.5.1',

fullSizeMode: 'fitheight',

skin: 'fullwidth',

popupWidth: 640,

popupHeight: 360,

skinsPath: '<?php echo \get_stylesheet_directory_uri() . '/layerslider/skins/' ?>'

});

}

});

</script>

<?php get_template_part('templates/slider/' . $config['id']);?>

</div>

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

                        

}

public function pageLink($name)

{

if ($this->templateId($name)) {

return \get_permalink($this->templateId($name));

} elseif ($name == 'register') {

return \wp_registration_url();

} elseif ($name == 'login') {

return \wp_login_url();

} else {

return \home_url();

}

}

public function layerSlider($id = 'home')

{

$config = ['id' => $id];

include $this->path('templates', 'slider/common.php');

}

}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

                        

<?php

global $wp_query;

$cols = 3;

$i = 1;

$count = $wp_query->post_count;

$archive = Imon\App::getInstance()->make('archive'); ?>

<?php Imon\App::getInstance()->layerSlider('layerslider_18'); ?>

<div id="after_layer_slider_1" class="main_color av_default_container_wrap container_wrap fullsize">

<div class="container">

<div class="template-page content av-content-full alpha units">

<div class="post-entry post-entry-type-page post-entry-7090">

<div class="entry-content-wrapper clearfix">

<div

data-autoplay=""

data-interval="5"

data-animation="fade"

data-show_slide_delay="90"

class="avia-content-slider avia-content-grid-active avia-content-slider1 avia-content-slider-odd avia-builder-el-1 el_after_av_layerslider el_before_av_section avia-builder-el-no-sibling"

itemscope="itemscope"

itemtype="https://schema.org/Blog">

<div class="avia-content-slider-inner">

<?php while (have_posts()) { ?>

<?php if ($i % $cols === 1): ?>

<?php echo '<div class="slide-entry-wrap">'; ?>

<?php endif; ?>

<?php the_post(); ?>

<article

class="slide-entry flex_column post-entry post-entry-16075 slide-entry-overview slide-loop-1 slide-parity-odd av_one_third <?php echo ($i % $cols === 1) ? 'first' : '' ?> real-thumbnail"

itemscope="itemscope"

itemtype="https://schema.org/BlogPosting"

itemprop="blogPost">

<a href="<?php the_permalink(); ?>" data-rel="slide-1" class="slide-image" title="">

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

728

                        

/*

* This use of extract() cannot be removed. There are many possible ways that

* templates could depend on variables that it creates existing, and no way to

* detect and deprecate it.

*

* Passing the EXTR_SKIP flag is the safest option, ensuring globals and

* function variables cannot be overwritten.

*/

// phpcs:ignore WordPress.PHP.DontExtract.extract_extract

extract( $wp_query->query_vars, EXTR_SKIP );

}

if ( isset( $s ) ) {

$s = esc_attr( $s );

}

if ( $require_once ) {

require_once $_template_file;

} else {

require $_template_file;

}

}

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

680

681

682

683

684

685

686

687

688

689

690

691

692

                        

function locate_template( $template_names, $load = false, $require_once = true ) {

$located = '';

foreach ( (array) $template_names as $template_name ) {

if ( ! $template_name ) {

continue;

}

if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {

$located = STYLESHEETPATH . '/' . $template_name;

break;

} elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {

$located = TEMPLATEPATH . '/' . $template_name;

break;

} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {

$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;

break;

}

}

if ( $load && '' != $located ) {

load_template( $located, $require_once );

}

return $located;

}

/**

* Require the template file with WordPress environment.

*

* The globals are set up for the template file to ensure that the WordPress

* environment is available from within the function. The query variables are

* also available.

*

* @since 1.5.0

*

* @global array $posts

* @global WP_Post $post Global post object.

* @global bool $wp_did_header

* @global WP_Query $wp_query WordPress Query object.

* @global WP_Rewrite $wp_rewrite WordPress rewrite component.

* @global wpdb $wpdb WordPress database abstraction object.

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

                        

$templates = array();

$name = (string) $name;

if ( '' !== $name ) {

$templates[] = "{$slug}-{$name}.php";

}

$templates[] = "{$slug}.php";

/**

* Fires before a template part is loaded.

*

* @since 5.2.0

*

* @param string $slug The slug name for the generic template.

* @param string $name The name of the specialized template.

* @param string[] $templates Array of template files to search for, in order.

*/

do_action( 'get_template_part', $slug, $name, $templates );

locate_template( $templates, true, false );

}

/**

* Display search form.

*

* Will first attempt to locate the searchform.php file in either the child or

* the parent, then load it. If it doesn't exist, then the default search form

* will be displayed. The default search form is HTML, which will be displayed.

* There is a filter applied to the search form HTML in order to edit or replace

* it. The filter is {@see 'get_search_form'}.

*

* This function is primarily used by themes which want to hardcode the search

* form into the sidebar and also by the search widget in WordPress.

*

* There is also an action that is called whenever the function is run called,

* {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the

* search relies on or various formatting that applies to the beginning of the

* search. To give a few examples of what it can be used for.

*

* @since 2.7.0

1

2

3

4

5

6

7

8

9

10

11

                        

<?php

get_header();

if (Imon\App::getInstance()->make('archive')->isCatType()) {

get_template_part('templates/pages/archive', 'type');

} else {

get_template_part('templates/pages/archive');

}

get_footer();

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

                        

}

break;

}

}

if ( ! $template ) {

$template = get_index_template();

}

/**

* Filters the path of the current template before including it.

*

* @since 3.0.0

*

* @param string $template The path of the template to include.

*/

$template = apply_filters( 'template_include', $template );

if ( $template ) {

include $template;

} elseif ( current_user_can( 'switch_themes' ) ) {

$theme = wp_get_theme();

if ( $theme->errors() ) {

wp_die( $theme->errors() );

}

}

return;

}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

                        

<?php

/**

* Loads the WordPress environment and template.

*

* @package WordPress

*/

if ( ! isset( $wp_did_header ) ) {

$wp_did_header = true;

// Load the WordPress library.

require_once __DIR__ . '/wp-load.php';

// Set up the WordPress query.

wp();

// Load the theme template.

require_once ABSPATH . WPINC . '/template-loader.php';

}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

                        

<?php

/**

* Front to the WordPress application. This file doesn't do anything, but loads

* wp-blog-header.php which does and tells WordPress to load the theme.

*

* @package WordPress

*/

/**

* Tells WordPress to load the WordPress theme and output it.

*

* @var bool

*/

define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */

require __DIR__ . '/wp-blog-header.php';

GET

POST

Files

SERVER_SOFTWARE
nginx/1.20.2
REQUEST_URI
/date/2022/02
USER
apache
HOME
/usr/share/httpd
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
feibiaotong.cn
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_STATUS
200
SERVER_NAME
www.feibiaotong.cn
SERVER_PORT
443
SERVER_ADDR
172.19.13.57
REMOTE_PORT
51178
REMOTE_ADDR
3.236.52.68
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/var/www/html/feibiaotong.cn
DOCUMENT_URI
/index.php
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/var/www/html/feibiaotong.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1664816033.5871
REQUEST_TIME
1664816033

开源、节流、增效,帮助非标机械企业从优秀到卓越 免费体验

客服电话:
13917062624

电话咨询 免费体验 在线客服