How to publish a message using Rabbit on windows - php

I have been trying to publish a message using the Yiiamq extension but I am not able to do so. I have installed the DLL with success but I am getting the following error code when I try to publish a message:
AMQPExchange::__construct() expects exactly 1 parameter, 2 given
Here is the code I am using:
Yii::app()->amqp->exchange('amq.direct')->publish('some message','Frontier1');
Has anybody used this extension for Yii before?or Id s there another library that I could use.

Related

Magento 2.4.4 sample data installation error

I have downloaded Magento version 2.4.4 with sample data from https://magento.com/tech-resources/download I was trying to install it on the Wamp server. But when I run the installation I get the error
Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exce
ption message: Rolled back transaction has not been completed correctly.
I tried with versions 2.4.3 and 2.4.3-p2 all are showing the same error. But I was able to install the 2.4.3 version without sample data. I searched and found it is related to some error in the csv file. But none of the answers provided a solution. Please help.
Hi #Akhilesh in our case use magento 2.4.4 and this error was by a third module and when disable this, all magento run fine.
Your can edit vendor/magento/framework/DB/Adapter/Pdo/Mysql.php file, search rollback() method and in the "else" section add this line:
echo (new \Exception())->getTraceAsString();
This can help you to look where is the error, if is from a module or another.
Regards

Unable to create package in module builder or Deploy a new package in SuiteCRM

I am unable to create a new package from module builder. In module builder, when I enter a package name and key and hit save, it does nothing.
When I inspect in chrome, the console logs the following error:
Uncaught TypeError: Cannot read property 'value' of undefined
at validate_form (sugar_grp1.js:228)
at check_form (sugar_grp1.js:160)
at Object.handleSave (ModuleBuilder.js:905)
at HTMLInputElement.onclick (/XXXXXX/index.php?module=ModuleBuilder&action=index&type=mb#ajaxUILoc=&mbContent=module%3DModuleBuilder%26action%3Dpackage%26new%3D1:1)
Any suggestions on what I can look at or do to debug?
I'm using SuiteCRM 7.7.8
Php 7
I thought this might be a permissions issue, so i made sure all folders and files are 755 and tried to create the package again but got the same error.
I do not have any custom modules. this was the first one im trying to build.
I get similar errors if i try to export a module in studio also.
When I dig deeper, the exact line that fails in sugar_grp1.js is var current_module=document.getElementsByName("view_module")[0].value;
There is no element with name view_module on the page. It appears that this is happening to other users also. Please see: https://suitecrm.com/community/forum/suitecrm-7-0-discussion/12418-unable-to-create-package-in-module-builder#42665
UPDATE: I have done the usual repair and rebuild everything along with JS groupings and JS. Still the same.
An easy solution, see following steps:
Open /cache/include/javascript/sugar_grp1.js
Go to line 228 or find the next text:
var current_fields='';var current_module=document.getElementsByName("view_module")[0].value;$.ajax({type:"GET",url:"index.php?to_pdf=1&module=ModuleBuilder&action=getModuleFields&current_module="+current_module,async:false,success:function(result){current_fields=JSON.parse(result);},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");}});for(k=0;k<current_fields.length;k++){if(isError!=true){val=current_fields[k].toUpperCase();if((operator=="=="&&val==item1)||(operator=="!="&&val!=item1)){isError=true;add_error_style(formname,validate[formname][i][nameIndex],'Invalid Value: Field Name already exists');}}}
Remove this line.
QuickRepair.
Clear your Browser Cache and try again.

ezPublish error: index: Undefined module: eventcalendar

We have received below error in the error log file and also not able to view events on the event page. Also not able to find relevant script.
index: Undefined module: eventcalendar
error/view.php:
Error ocurred using URI: /dffestival_eng_GB/eventcalendar/fullcalendarprogramme
We are using eZ Publish Community Project 2012.6 version.
Could anyone please explain how to resolve this error.
Thanks
eZ Publish Community Project 2012.6 is an eZ Publish 5 version of eZ Publish and the module you referred to is probably a custom one, based on the legacy project.
This means that its source code should be in ezpublish_legacy/extension/.
eZ Publish 5 requires legacy modules to be well defined in their module.ini.append.php.
First, find the extension where your custom module is. You probably have a module view called fullcalendarprogramme.php defined in a directory like this ezpublish_legacy/extension/<EXTENSIONNAME>/modules/eventcalendar/
Then edit the related module.ini file in ezpublish_legacy/extension/<EXTENSIONNAME>/settings/module.ini.append.php and make sure it looks like this :
<?php /* #?ini charset="utf-8"?
[ModuleSettings]
ExtensionRepositories[]=EXTENSIONNAME
ModuleList[]=eventcalendar
*/
Note that the fullcalendarprogramme view might be defined in another script. You'll find the mapping between the view's name and the script in the module.php file of the module :
$ViewList['fullcalendarprogramme'] = array(
'script' => 'fullcalendarprogramme.php'
);

QuickBooks php XML Responce parsing Error

I am using QuickBooks v3 php sdk 2.1.0.
Running a query (SELECT * FROM SalesReceipts) gives the XML Response but getting NULL value, tried to applying error message and got this error
Class com\intuit\schema\finance\v3\IPPid does not exist.
Any Solutions ???
At Last Found the Solution....
Steps:
Download the fresh sdk
Replace All the files in sdk/Data Folder
Test Your code now!
If error still persist, replace all the files excepts sdk.config and this will fix your issues.

function imagecreatetruecolor() is not working in my server

In my website's cpanel it shows that
Apache version : 2.0.63 PHP version : 5.2.9 MySQL version :
5.0.92-community Operating system : linux
I currently installed a joomla website inside the server. I am using a module named "negetics PSS" as my homepage banner.
Here is the working model of the banner :
http://extensions.negetics.de/negetics-Presentation-Slider-Slim/demo-1.html
as you can see in the demo, the 6 handles of that slider is generated using php imagecreatetruecolor function. Now my problem is that, while i am using this module in my server, the module is generating error in its error log that :
[24-Oct-2011 02:32:27] PHP Fatal error: Call to undefined function
imagecreatetruecolor() in.....
as a result you can imagine, the handles are not generating.
How do i fix this..?
please Help me.
Thanks
Install Gd library. follow the below link. GD library instalation

Categories