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

PHP Fatal error: Declaration of Zend_Rest_Route::assemble($data = Array, $reset = false, $encode = true) must be compatible with Zend_Controller_Router_Route_Module::assemble($data = Array, $reset = false, $encode = true, $partial = false) #3

Closed
simogrima opened this issue Mar 5, 2019 · 5 comments

Comments

@simogrima
Copy link

Zend Framework 1 reaches its End of Life (EOL) and is no longer maintained.
No Pull Requests will be accepted.

https://framework.zend.com/blog/2016-06-28-zf1-eol.html

@Shardj
Copy link
Owner

Shardj commented Mar 10, 2019

I'm very aware that zf1 reached EOL, that's why this fork exists. Also your error message by itself isn't of much use, I'll close this until you provide something more helpful.

@Shardj Shardj closed this as completed Mar 10, 2019
@simogrima
Copy link
Author

Shardj,
I I tried to use your fork but I get that error message.

@Shardj
Copy link
Owner

Shardj commented Mar 11, 2019

Could you provide a stack trace? And the code you're using to bootstrap the framework?

@simogrima
Copy link
Author

simogrima commented Mar 11, 2019

The problem is in the boostrap whi i try to init rest route

protected function _initRoutes()
{
    $this->bootstrap("frontController");
    $front = $this->getResource("frontController");

    $front->getRouter()->addConfig(new Zend_Config_Ini(APPLICATION_PATH . "/configs/routes.ini"), "routes");
    
    $restRoute = new Zend_Rest_Route($front, array(), array('it' => array('rest_cache')  ));
    $front->getRouter()->addRoute('rest', $restRoute);         
}

@Shardj Shardj reopened this Mar 11, 2019
@Shardj
Copy link
Owner

Shardj commented Mar 11, 2019

Should now be fixed on master, I went and looked at some forks of my branch and this issue was sorted on a couple of them so I merged one in.

@Shardj Shardj closed this as completed Mar 11, 2019
gfaza pushed a commit to gfaza/zf1-future that referenced this issue Sep 18, 2019
…incompatibilities

DTPORTAL-14813 enhancing compatiblity alert backtrace message
EugenePikalov added a commit to EugenePikalov/zf1-future that referenced this issue Jan 11, 2022
- strtr(): Passing null to parameter Shardj#1 ($string) of type string is deprecated
- PDOStatement::fetch(): Passing null to parameter Shardj#3 ($cursorOffset) of type int is deprecated
- PDOStatement::fetch(): Passing null to parameter Shardj#2 ($cursorOrientation) of type int is deprecated
emelyanov-s pushed a commit to emelyanov-s/zf1-future that referenced this issue Apr 14, 2023
- Deprecated: apcu_store(): Passing null to parameter Shardj#3 ($ttl) of type int is deprecated
emelyanov-s added a commit to emelyanov-s/zf1-future that referenced this issue Apr 14, 2023
- Deprecated: apcu_store(): Passing null to parameter Shardj#3 ($ttl) of type int is deprecated
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