Php Magento企业前端上传图像问题

Php Magento企业前端上传图像问题,php,ajax,magento,Php,Ajax,Magento,我使用Magento Enterprise ver。1.13.1.0,我有一个上传图像的自定义扩展,此图像用于客户头像,问题是在我按下保存按钮后,此图像未上传到媒体文件夹中。在firebug中,我有以下错误: recs f.2 - fix responsive Loading LPS_LSH version 1.8.8 (Toolbox v2.3) with debug mode - Revision: 1.3 no subscriber data found in storage rec

我使用Magento Enterprise ver。1.13.1.0,我有一个上传图像的自定义扩展,此图像用于客户头像,问题是在我按下保存按钮后,此图像未上传到媒体文件夹中。在firebug中,我有以下错误:

recs f.2 - fix responsive

Loading LPS_LSH version 1.8.8 (Toolbox v2.3) with debug mode - Revision: 1.3

no subscriber data found in storage

recs 1.1

"NetworkError: 404 Not Found - https://www.domain.com/media/pix_resized/customer/l/o/70x70logo653926.png"
图像如下所示:

 <img class="small-image-preview v-middle" width="70" height="70" src="<?php echo Mage::helper('pixcore/image')->resizeImg($this->helper('pixseller')->getStorePhotoUrl(true), 70, 70, 'customer') ?>" title="View Full Size" alt="View Full Size">
resizeImg($this->helper('pixseller')->getStorePhotoUrl(true),70,70,'customer')?>“title=“View Full Size”alt=“View Full Size”>

请使用媒体url,然后使用路径。 Mage::getBaseUrl(Mage\核心\模型\存储::URL\类型\媒体);
谢谢。

现在我可以看到您的图像没有上传,或者创建拇指有问题。请按照下面的代码我如何制作拇指。然后将其与img源一起使用

$mediaurl= Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
                                    $imageResized = Mage::getBaseDir('media')."/latestnews/resized_".$news->getData('thumbnail');


                                    $imageObj = new Varien_Image(Mage::getBaseDir('media').'/'.$news->getData('thumbnail'));
                                    $imageObj->constrainOnly(TRUE);
                                    $imageObj->keepAspectRatio(FALSE);
                                    $imageObj->keepFrame(FALSE);
                                    $imageObj->resize(177,138);
                                    $imageObj->save($imageResized);
<img src="<?php echo $mediaurl.'latestnews/resized_'.$news->getData('thumbnail');?>" class="post-image img-responsive" title="<?php echo $news->getData("content_heading")?>" alt=""/>
$mediaurl=Mage::getBaseUrl(Mage\u Core\u Model\u Store::URL\u TYPE\u MEDIA);
$imageResized=Mage::getBaseDir('media')。“/latestnews/resized\”$news->getData('缩略图');
$imageObj=new Varien_Image(Mage::getBaseDir('media')。/。$news->getData('thumbnail');
$imageObj->constraintonly(TRUE);
$imageObj->keepAspectRatio(FALSE);
$imageObj->keepFrame(FALSE);
$imageObj->调整大小(177138);
$imageObj->save($imageResized);
getData(‘缩略图’);?>“class=“post image img responsive”title=”“alt=”“/>

在哪里?我需要在哪里添加这个?我认为有一些ajax,图像是这样的:resizeImg($this->helper('pixseller')->>getStorePhotoUrl(true),70,70,'customer')?>“title=”View Full Size“alt=”View Full Size“>请确认图像存在于媒体/pix_resized/customer/l/o/70x70logo653926.png下。然后我会建议代码。代码不起作用,你能让你的代码符合我的要求吗?你能给我模块代码,这样我可以测试它,我可以在合适的时间修改它。首先通过777检查媒体文件夹权限我们可以私下交谈吗?你有电子邮件吗?还是什么?查看我的网络配置文件并从中获取我的电子邮件地址