在将Wordpress升级到软件3.9的最新版本后,我发现了一个错误.
我收到此错误:
2014年4月17日17:21:52] [warn] mod_fcgid:stderr:PHP可捕获的致命错误:类45_Post的对象无法在第455行的/wp-content/plugins/qtranslate/qtranslate_core.php中转换为字符串,referer :http://www.mywebsite.com/
为什么会这样?
我正在使用Magento CE 1.6.2并尝试使用Website Payments Pro系统.
我通过结账流程,选择Paypal PRO链接作为我的付款方式,收到消息"您需要在下订单后输入付款详细信息",到达我查看具有"地点"的订单的页面订购"按钮就可以了.
当我点击"下订单"时,我的期望是以iframe形式获得paypal按钮但没有出现.页面永远不会改变.
如果我在后端办理登机手续,则该订单会在Magento中显示为"待付款".
我应该提一下,我正在使用测试PayPal帐户执行此操作并且我打电话给PayPal并且他们认为我的所有设置都是正确的,尽管我不确定我是否正确设置.
有关为什么在点击"下订单"后我没有被引导到页面输入我的付款信息的任何想法?是否有网站付款专家和Magento 1.6.2的错误?
http://minus.com/lbkpOV6gikF0bs
我启用了DEBUG模式,我在payment_hosted_pro.log中读到了PAYPAL API的正确响应.
2012-04-05T23:10:41+00:00 DEBUG (7): Array
(
[url] => https://api-3t.sandbox.paypal.com/nvp
[BMCreateButton] => Array
(
[METHOD] => BMCreateButton
[BUTTONCODE] => TOKEN
[BUTTONTYPE] => PAYMENT
[L_BUTTONVAR0] => subtotal=14.88
[L_BUTTONVAR1] => tax=0.00
[L_BUTTONVAR2] => shipping=5.00
[L_BUTTONVAR3] => invoice=100000050
[L_BUTTONVAR4] => address_override=false
[L_BUTTONVAR5] => currency_code=EUR
[L_BUTTONVAR6] => buyer_email=jdoe@gmail.com
[L_BUTTONVAR7] => billing_first_name=John
[L_BUTTONVAR8] => billing_last_name=Doe
[L_BUTTONVAR9] => billing_city=New York
[L_BUTTONVAR10] => billing_state=New York
[L_BUTTONVAR11] => billing_zip=0000
[L_BUTTONVAR12] => billing_country=US
[L_BUTTONVAR13] => billing_address1=no …Run Code Online (Sandbox Code Playgroud) 我在Magento商店中有大约50,000条记录要导入.我已经测试过:文件大约是50 MB.
拆分文件不会提高产品导入的速度.Api很慢.Magento课程很慢.
这是使用Magento类修改的代码:
// Build the product
$product->setIsMassupdate(true)
->setExcludeUrlRewrite(true)
->setManufacturer($this->addManufacturers(utf8_encode($record[4])))
->setSku($record[3])
->setAttributeSetId($this->attribute_set)# 9 is for default
->setTypeId(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE)
->setName(utf8_encode($record[5]))
->setCategoryIds($this->getCategories(array($record[0], $record[1], $record[2]))) # some cat id's,
->setWebsiteIDs(array(1)) # Website id, 1 is default
->setDescription(utf8_encode($record[6]))
->setShortDescription($this->shortText(utf8_encode($record[6]), 150))
->setPrice($price) # Set some price
->setSpecialPrice($special_price)
->setWeight($record[12])
->setStatus( Mage_Catalog_Model_Product_Status::STATUS_ENABLED )
->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)
->setTaxClassId(2) // default tax class
->setPixmaniaimg($record[10])
->setStockData(array('is_in_stock' => $inStock, 'qty' => $qty))
->setCreatedAt(strtotime('now'));
$product->save();
$ID = is_numeric($productID) ? $productID : $product->getId();
Run Code Online (Sandbox Code Playgroud)
所以上面的方法是正确的,但它花了大约5个小时才能插入2300条记录!
为了添加新产品,我必须在Magento DB中执行哪些简单的SQL插入?
我尝试执行cli命令./doctrine generate-migrations-diff,并在右侧文件夹中正确创建了一个版本文件.
消息是:generate-migrations-diff - 从差异中成功生成的迁移类
然后我尝试执行另一个cli命令./doctrine migrate并向我显示一条消息:migrate - 成功迁移到版本#1但是当我打开该类时,任何修改都已完成.为什么?
这是version1文件:
<?php
class Version1 extends Doctrine_Migration_Base
{
public function up()
{
$this->removeColumn('addresses', 'address_test');
}
public function down()
{
$this->addColumn('addresses', 'address_test', 'string', '', array(
'fixed' => '0',
'unsigned' => '',
'primary' => '',
'notnull' => '1',
'autoincrement' => '',
));
}
}
?>
Run Code Online (Sandbox Code Playgroud)
这是YAML.我删除了字段:address_test
Addresses:
connection: doctrine
tableName: addresses
columns:
address_id:
type: integer(4)
fixed: false
unsigned: false
primary: true
autoincrement: true
address:
type: string()
fixed: false
unsigned: false …Run Code Online (Sandbox Code Playgroud) 我如何获得Magento中特定订单的所有交易付款项目?
我只能得到最后一个交易ID:
$transId = $order->getPayment()->getLastTransId();
Run Code Online (Sandbox Code Playgroud)
有没有办法获得所有订单交易?

谢谢
我将用ZF2创建一个新项目.事实上,我将不得不升级ZF1项目,但我决定从头开始.
我的项目非常庞大,已经被来自世界各地的志愿者翻译成10种不同的语言.
我遇到的困难是对ZF2告诉我遵循的模块结构的分析.
该软件允许ISP的世界中的中小企业管理他们的客户数据库,服务,订单,发票,域,技术协助,电子商务,kb等等.
假设ZF2鼓励程序员创建可在其他应用程序中重用的小模块,并且在所有情况下我们尽可能地简化和抽象类的结构,项目数据库中的许多表通过各种外来相互连接键和我无法理解如何使用自己的实体文件创建独立模块,同时与项目断开连接而不会导致崩溃.
例如 :
我的应用运行:
以下是项目Web界面的屏幕截图:

正如您所看到的,该项目通过嵌入同一项目的各个部分,尽可能地显示法律和秩序情况的概述.最初我想创建一个单独的模块,但我需要你的一些建议.
您建议我采用什么策略来采用大型项目的结构?