Questions tagged [zend-framework]

Zend Framework is an open source, object-oriented web application framework implemented in PHP 7.1 and licensed under the New BSD License. Zend Framework was archived on 1 January 2020 simultaneously with migration to and launch of Laminas Project, an official continuation under The Linux Foundation governance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Zend Session Error, Session must be started before any output has been sent to browser

Changed my server for zend framework web application configured database connection and also written some basic .htaccess file for the website but after that error is coming when trying to run index....
BabaYaga_Coding's user avatar
0 votes
1 answer
42 views

I'm doing a laminas framework tutorial and getting some errors trying to access localhost/album

The error code is Laminas\ServiceManager\Exception\ServiceNotFoundException File: D:\Projects\validation\vendor\laminas\laminas-servicemanager\src\ServiceManager.php:586 The error message is Unable to ...
oskar's user avatar
  • 1
0 votes
1 answer
24 views

PHP Zend 1 Date translations not translating correctly for Finnish

I'm working on a fairly old project, built on the Zend 1 framework. There's an issue with translation, specifically Finnish. To test, I'm running the following code: (new Zend_Date(time(), false, new ...
Skytiger's user avatar
  • 1,755
0 votes
0 answers
21 views

Laminas abstract factories calling order

I have list of my own abstract factories in module.config.php of my module: 'service_manager' => [ 'abstract_factories' => [ \Base\Logic\Factory\AbstractLogicFactory::class, \...
b4rt3kk's user avatar
  • 1,419
0 votes
0 answers
35 views

Sending mail using Office 365 in zend framework fail

I am working on a zend framework version 1 which is an extremely old project. I had to implement a email feature on that project and for local development mailtrap was doing completely okay but when ...
Aashish Thapa Magar's user avatar
0 votes
1 answer
21 views

How do I find out if current Zend_Date time is between time today and time tomorrow?

Hello I am using $currentDate = new Zend_Date(); to get the current time but I need to determine if that time is between say 10pm and 2am - how can I do this with Zend_Date, the next day part is what ...
Pippy Longstocking's user avatar
1 vote
0 answers
39 views

Shopware 5 - 504 5.7.4 Unrecognized authentication type

I have a problem with sending mails through Shopware5. Here is the error I get: 504 5.7.4 Unrecognized authentication type And here is the whole log: ^ array:13 [▼ 0 => "220 SRV02EX16....
Milad's user avatar
  • 377
0 votes
1 answer
46 views

How to use same Models in different Modules in Laminas Framework (or Zend Framework 3)

I am working on implementing Laminas Framework within a project that has a public marketing area, a private members area, an administration area. I would like to create be able to split the ...
lokotek's user avatar
0 votes
0 answers
29 views

problem with php zend api and definition of an enum with zend_register_internal_enum

the following code fails if shared library is loaded with dl() ... PHP_MINIT_FUNCTION(phpmkkernel) { #if defined(ZTS) && defined(COMPILE_DL_PHPMKKERNEL) ZEND_TSRMLS_CACHE_UPDATE(); #endif #...
Andreas Otto's user avatar
0 votes
0 answers
21 views

Fatal error: Uncaught Error: Failed opening required [duplicate]

I upgraded an old PHP application with Zend framework from PHP 5.2 to PHP 8.2 using Rector. Now Its giving me an error as follows, Fatal error: Uncaught Error: Failed opening required 'D:\projects\...
HARINDA VITHANA's user avatar
0 votes
0 answers
46 views

Laminas (Zend, zf3) manually setting Route, so that including MVC-Application in separate Software, e.g. Wordpress is possible

So, I'm looking for a quick and lazy way to use a Laminas MVC-Application with its complete functionality (Controller, ViewRenderer, etc) in Wordpress. This works in terms of that the the MVC-App ...
mdthh's user avatar
  • 1,248
0 votes
1 answer
196 views

Bug to initialize a variable in the Laminas Session

I had a curious bug that happened in my code. I initialize a variable in the session in the controller. But when I retrieve the data in the view, the variable is equal to null. The code of the ...
Q. Suisse's user avatar
  • 107
0 votes
0 answers
37 views

composer says that zend-serviccemanager 2.7.8 conflicts with zendframework 2.4.0

I have a legacy system that I have to mantain and at moment I can't update it to newest technologys But i'm facing problems with AWS S3, and trying some things, I decided to reinstall the dependencies,...
Rafael Tuneca's user avatar
0 votes
0 answers
49 views

Use laravel/framework instead of laravel/laravel in Zend Application || Fatal error: Uncaught ReflectionException: Class Kernel

I have a Zend application, with composer.json I installed laravel/framework using the following command: docker-compose exec web-server composer require laravel/framework:8.* I am creating a folder ...
Vivek Tankaria's user avatar
0 votes
0 answers
27 views

- amnuts/opcache-gui 2.5.4 requires ext-zend-opcache * -> it is missing from your system

I'm trying to run 'composer install' command on root directory of existing project, but when I run this command it's giving 'ext-zend-opcache' missing error.enter image description here I've enabled ...
Adnan Mustafa's user avatar
1 vote
2 answers
482 views

MAGENTO2 Error InvalidArgumentException: Invalid scope type ''

I'm currently trying to integrate MAGENTO (Open source ver. 2.4.5) with IBM DB2 LUW. I have succesfully communicated the framework with the DB2 database, done by changing backend classes (PDO, and ...
Carlos's user avatar
  • 57
0 votes
1 answer
178 views

using Doctrine With laminas project issue : "Class does not exist"

I just installed Doctrine with my Laminas project. I added a database connection and generated my entities in the Application folder (Application\Entity). I added my entities settings to the module....
EL KHALYFY Mohammed's user avatar
1 vote
1 answer
22 views

How do I alter my unit test to utilise mocks within the setUp function?

I have a relatively basic phpunit test that contains 1 setUp function, and 2 tests - I am still learning phpunit so forgive my ignorance :) Note - I am using the Zend 2 Framework. I would like the ...
Zabs's user avatar
  • 13.9k
0 votes
1 answer
168 views

Zend Framework - Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception'

can someone help? I have issue with sending mail from website (eshop) after order confirmation. Zend fremework is used to 2 identically eshop. Both use the same classes, same settings, on one it works ...
Vesteqan's user avatar
0 votes
0 answers
45 views

"laminas migration" is not internal or external command executed by a program or batch file. Win

I'm trying to upgrade from zend to laminas, I'm doing everything strictly according to the documentation, but when I run the laminas-migration migrate command an error occurs I am in my project ...
Aleksey Seyrol's user avatar
0 votes
0 answers
31 views

How to solved "Flutter my query is executed twice"

Hello community My concern is the following. I have a mobile application on Flutter which is connected to an API on a server which I will name S1 which also connects to a server which I will name S2. ...
Hyacinthe Njimbong's user avatar
0 votes
1 answer
47 views

IIS Rewrite rules for PHP Zend application migrated from Apache

Versions: PHP 5.5 Zend v 2.5 IIS V 10 Hi, I have migrated an apache website to IIS with a simple copy and paste and setup rewrite rules from the HTAccess file. The site all works fine accept when a ...
Paul H's user avatar
  • 1
0 votes
1 answer
678 views

Build SQL Select object in Laminas that cotains subquery as FROM table

I'm trying to put that query: SELECT * FROM ( (SELECT * FROM table1) UNION (SELECT * FROM table2) ) AS t; into \Laminas\Db\Sql\Select object. Something like this: $select1 = new \Laminas\Db\...
b4rt3kk's user avatar
  • 1,419
0 votes
1 answer
42 views

Zend Framework 3 - Module won't load

So i've a web app using Zend Framework 3. It ran perfectly until today. I tried to add a module ("Params") and i can't figure why it doesn't load. My Module tree : My config/Module.config....
Maxime Guiton's user avatar
-1 votes
1 answer
54 views

WHERE clause not working in a query - Zend Framework

I set up a simple DB in MySQL with these informations: And a Zend Model CalendarioVeicolo to interact with the DB. In my Controller file, if I execute the following query: $query = $model->select()...
Niccolò Segato's user avatar
-2 votes
1 answer
83 views

can help me to generate multiple mpdf files with loop without lose configuration?

Image to be attached to PDF can help me to generate multiple mpdf files with loop without lose configuration, because it always write first file correct but the others with attached image contain ...
Ahmed Mohamed's user avatar
0 votes
1 answer
344 views

How to deploy zend1 framework inside a docker container?

I want to deploy the php zend1 framework app inside a container. After following the guide link I used the the docker-compose.yml for tmy Webserver. Moreover I used composer as a shardj/zf1-future to ...
A.Dumas's user avatar
  • 2,629
-1 votes
1 answer
79 views

getting error while using zend email validation:: PHP Fatal error: Uncaught Error: Class 'Zend\Validator\AbstractValidator'

I am trying to validate email while registration to makesure no spam. For that purpose i learn that, Zend FrameWork is good for this. So to try that following steps i followed: i downloaded ...
Mohib Salahuddin Ayubi's user avatar
0 votes
1 answer
45 views

Extending module but keep no-overwrite template map

I was looking for how to re-use my User module across other projects. As I have custom features for each my clients, I decided to create: One generic UserModule to be packaging One extend-module ...
juliangorge's user avatar
1 vote
1 answer
723 views

How initialise Zend1 with composer with php8?

I want to use zend1 with composer and initialize the project. My php version is $ php -v PHP 8.1.9 (cli) (built: Aug 5 2022 11:22:59) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.9, Copyright (...
A.Dumas's user avatar
  • 2,629
0 votes
1 answer
51 views

Zend Framework - More than one record matches the supplied identity

Here is the problem. I have an eshop with users, they do not need to create account when ordering something, but they have a chance for it. I have a user that he first time refuse registering (I also ...
Dan Rais's user avatar
  • 159
0 votes
1 answer
227 views

"Can't use function return value in write context" out of nowhere

When executing a console routine, I've encountered Can't use function return value in write context. What intrigues me is that I've made no changes between executions. Executed once normally, executed ...
Mevryk's user avatar
  • 3
0 votes
0 answers
38 views

Specific url parameter not working in Zend Framework 1.12.3

I'm using the Zend framework at version 1.12.3, and I'm having trouble with specific param on url. The url is composite with the param called 'code': api/callback?code=...
Valdir Silva's user avatar
0 votes
1 answer
158 views

Store output of php_execute_script

How can I store the output of php_execute_script() in a character array? php_execute_script() only prints the output. Here's what I've got: PHP_EMBED_START_BLOCK(argc, argv) char string[200]; setbuf(...
user avatar
1 vote
1 answer
1k views

Problems when creating a new project with zendframework 3, using a Composer

Please i'm trying to learn the Framework Zend 3, even i know it is outdated framework but i should learn it because i have to use it in alternation in the company. I am trying to follow the ...
Axel's user avatar
  • 21
1 vote
1 answer
32 views

migrating application from zend framework (ZF)+ AngularJS to zend framework + Angular

My application is in Zend framework + AngularJS. Where Zend framework gives us the routes and APIs for consuming in application. current zend routes are like - app.domain.com/home, app.domain.com/...
Ranvir S.'s user avatar
0 votes
1 answer
242 views

Zend Framework 1: Setting Session Cookie to Http-Only is not working

So, at this very old project where there is still ZF1 running, we tried to put the http-only flag of the session-cookie to TRUE. We already have this line in the application.ini: phpSettings.session....
user avatar
-2 votes
1 answer
37 views

Exploding array basing on value

i have array built like this array (size=2) 0 => array (size=12) 'id_objects' => string '2876' (length=4) 'room_val' => string '1882840,1882841,1882842' (length=23) '...
buhh1231's user avatar
0 votes
1 answer
66 views

Zend Framework 1.2 - Error Table doesn't exists - even though the table already exists in MySQL

We’re on Zend 1.12 https://github.com/Shardj/zf1-future with security and php7.4 compatibility updates. Since this is a legacy application with very little documentation from the prior developer. I am ...
user580950's user avatar
  • 3,558
0 votes
1 answer
262 views

PHP Laminas DoctrineObjectInputFilter get value of other property in Callback input filter

I am working with Laminas DoctrineObjectInputFilter and want to get value of other property in Callback input filter like this code is in init function of Filter class which extends ...
Hassan Raza's user avatar
1 vote
2 answers
2k views

Check if my GET request has Header: Token

I want to send a request with or without 'Token' as a header. If request has 'Token' as a header: if the user already has that item, it will return the item with the proper item_id of a specific user ...
Ani's user avatar
  • 798
-1 votes
1 answer
479 views

Configuration must contain a "adapter" key in Laminas Framework

recién actualice el modulo laminas/laminas-cache a la versión ^3.1.3 y al momento de ejecutar mi desarrollo me lanza el siguiente error: Fatal error: Uncaught InvalidArgumentException: Configuration ...
user57381's user avatar
0 votes
0 answers
123 views

Is it possible to connect zend framework 1 with latest Laravel?

Language: PHP Framework: Zend Framework 1 Database: mySql I have an existing project in Zend Framework 1 and in this project we send a mail in foreach loop but I want to send mail using Laravel queue-...
Mitali Patel's user avatar
0 votes
0 answers
21 views

Zend FrameWork Production Deloyment whitescreen

I had moved my zend framework 1.11.11 project to production server windows 2012. while running i am getting whitepage only.pls help on this site is not working for 3 days. steps have done for ...
pk_'s user avatar
  • 114
0 votes
1 answer
157 views

Zend Framework compability with Lucene 8.4.1

I am using Lucene 3.5.0 for index creation. Zend-Framework-1.8.2 with PHP-7.1.12 is being used to search index. I have upgraded Lucene from 3.5.0 to 8.4.1. The indexes are now created with Lucene 8.4....
Vishal Sharnagat's user avatar
1 vote
0 answers
183 views

PHP Xdebug profiler not tracing relevant functions

I have a PHP 7.1/Zend Framework 1 project running in a docker container with Xdebug 2.7 and I'm trying to figure out, why my PHP functions take up to 30 seconds. However the Xdebug profiler is only ...
Sgagajew's user avatar
0 votes
1 answer
168 views

AWS SES simple email service, time out error with Zend email

I was using Amazon AWS SES simple email service to send emails for my application. I using the following codes of Zend framework2 to send emails. It worked fine before, but I got the following error ...
user2818066's user avatar
5 votes
1 answer
1k views

Laminas Cache config issue after updated to PHP 8.1 from zend3

I work on a project which is recently updated to Laminas and PHP 8.1 from Zend3 and PHP 7.4. in config/autoload/global.php 'caches' => require __DIR__ . '/caches.php', and this is caches.php $...
Ali Alinezhad's user avatar
2 votes
1 answer
344 views

SimpleSAMLphp overwrites PHP (Zend) session, doesn't happen with older SimpleSAMLphp version

I had to update simplesamlphp on an old PHP server, the old version of the library was from 2010. Simplesamlphp is used as a Service Provider (SP) in a SP initiated enviroment. I replaced it with the ...
Manuch's user avatar
  • 49
0 votes
0 answers
54 views

how to know file URL in Zend Framework?

I want to create a function to receive payment notifications (callbacks) from banks in Zend Framework. Banks need a URL to send payment notifications. I'm having trouble determining the URL Path of ...
HardyProject's user avatar

1
2 3 4 5
408