Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$this->tag->getTitle() return Array when using prependTitle #13039

Closed
fesiong opened this issue Aug 27, 2017 · 4 comments
Closed

$this->tag->getTitle() return Array when using prependTitle #13039

fesiong opened this issue Aug 27, 2017 · 4 comments

Comments

@fesiong
Copy link

fesiong commented Aug 27, 2017

when I use prependTitle to prepend title, it return back Array.

<title>Array - 明泽网络</title>
$this->tag->prependTitle($article->title);

Details

  • Phalcon version: (3.2.2)
  • PHP Version: (7.1.4)
  • Operating System: Centos
  • Installation type: Compiling from source
  • Server: Nginx
@sergeyklay
Copy link
Contributor

public static function prependTitle(var title) -> void

Could you please explain a bit more?

@sergeyklay
Copy link
Contributor

I'm closing this issue due to the lack of any reaction. I'll open it again if the need arises

@fesiong
Copy link
Author

fesiong commented Jan 17, 2018

Now nginx returns 502.
Perhaps the same page called 2 get_title reasons.

php in controller:

public function indexAction(){
$this->tag->prependTitle('topic title');
$this->tag->setTitle('site name');
}

volt in view:

<!DOCTYPE html>
<html lang="en">
<head>
{{ get_title() }}
</head>
<body>
<div class="hide" id="page-title">{{ get_title(false) }}</div>
</body>

php-fpm error:

[17-Jan-2018 15:53:53] WARNING: [pool www] child 56155 exited on signal 6 (SIGABRT - core dumped) after 2553.492746 seconds from start

nginx error:

2018/01/17 15:52:34 [error] 8732#0: *197 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: www.qinrennew.com, request: "GET /order HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.qinrennew.com"

core dump:

Details
Phalcon version: (3.3.0)
PHP Version: (7.1.13)
Operating System: MacOS 10.12.6
Installation type: Compiling from source
Server: Nginx

@sergeyklay
Copy link
Contributor

@fesiong Could you please open a new issue with code to reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants