Questions tagged [varien]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
3 answers
941 views

How can i add date and month text box with validation(No calender)

How can I add Magento custom validation for month and date text box? These two are input text box user can enter the number and I have to validate it via custom validation. Don't want a calender. <...
user avatar
  • 799
0 votes
1 answer
813 views

Warning: is_readable() expects parameter 1 to be a valid path

I have been getting this error pointing to this function protected function _checkSrcIsFile($src) { $result = false; if (is_string($src) && is_readable($src) && is_file($src)...
user avatar
  • 75
0 votes
0 answers
325 views

Warning: simplexml_load_string(): Entity: line 7: parser error

Just upgraded from 1.9.3 to 1.9.4, and now this is filling up system.log Warning: simplexml_load_string(): Entity: line 7: parser error : XML declaration allowed only at the start of the document ...
user avatar
1 vote
0 answers
140 views

getCollection()->getSize() not returning correct number of records

getCollection()->getSize() not returning correct number of records. Here is my code : /** @var $collection Mage_Reports_Model_Resource_Report_Collection */ $collection = Mage::...
user avatar
  • 131
0 votes
1 answer
179 views

Magento show Address fields and validate registration form only under some conditions

I'm trying to customize the form for customer account creation and I would like to use the same form for different types of customers, i.e. private and companies. What I want to achieve is using the ...
user avatar
  • 494
0 votes
1 answer
434 views

failed to open stream: No such file or directory in site/link/goes/here/Varien/Autoload.php on line 94

I am getting an error with my Magento site; here's an example of what I am seeing in my error log: [Tue Sep 19 00:02:39.321749 2017] [:error] [pid ######:tid ###########] [client ##.##.###:#####] PHP ...
user avatar
  • 1
1 vote
1 answer
229 views

Site is down and admin log in is broken

I am stuck here. My Magento site is just a blank white screen, and the admin panel log in has three fields and no log in button. I have attached an image of the admin log in and also the error I saw ...
user avatar
  • 11
1 vote
1 answer
850 views

Varien_Io_Sftp connection sometimes works, sometimes doesn't

I need to use FTP(S) and SFTP in my extension to receive and send files. I got FTP(S) to work with no problems whatsoever (using Varien_Io_Ftp), but I'm struggling with SFTP. The problem is that ...
user avatar
0 votes
1 answer
539 views

Filter in grid not working with Varien_Data_Collection

I have created custom collection with Varien_Data_Collection in admin grid like below : protected function _prepareCollection() { $collection = Mage::getModel("catalog/product")->getCollection(...
user avatar
0 votes
2 answers
133 views

Block type breaks when rewriting a block in custom module

Just installed Magento CE 1.9.3.1 into my local system. Then I tried to override the default text input field of Varien class just to add "placeholder" attribute. etc/config.xml of my module: <?...
user avatar
  • 1,984
3 votes
2 answers
3k views

How to create a excel file and need to save in root directory?

I tried to create to a excel file and need to save that created file some places. $filename = 'request_quote.xlsx'; $exportData[0]['product_id'] = 123; $exportData[0]['product_name'] =...
user avatar
  • 43
2 votes
0 answers
406 views

How can i Update My Product Export time consuming period for Bulk export products [duplicate]

In my store nearest 16,000 products are there, when i try to export both ways import/export or dataflow both are error. But when i export minimum of data i can able to export my products, which means ...
user avatar
  • 679
1 vote
1 answer
1k views

Magento 1 : Filtering / Paging / Sorting with Varien_Data_Collection

I'm back to this good old problem where using a Varien_Data_Collection in a grid does not handle sorting, paging nor filtering. I've found some useful resources such as : https://www.maximehuran.fr/...
user avatar
4 votes
3 answers
1k views

Replacement for Varien_data_collection

What is the replacement for Varien_Data_Collection in magento 2? I know that Varien_Object has been replaced with \Magento\Framework\DataObject.
user avatar
  • 483
0 votes
1 answer
4k views

VarienForm not working in magento 1.9.2 community edition

Hello I am developing a login and register form in magento. For form validation I am using this code var registerForm = new VarienForm('register-form', true); var loginForm = new VarienForm('login-...
user avatar
1 vote
1 answer
696 views

rm($filename) method in Varien_Io_Sftp does not delete remote file

I'm pretty new to Magento dev so forgive me if some of my terminology isn't quite right. My module needs to download and delete XML files from a remote FTP server using the sftp protocol. I'm using ...
user avatar
0 votes
1 answer
895 views

VarienForm js details and location

I'm looking for this file but i can't seem to locate it... I know that you run this bit of javascript to turn your plain old form into VarienForm <script type="text/javascript"> //<![CDATA[ ...
user avatar
0 votes
1 answer
1k views

Varien_Http_Client: getQuery() returns nothing

I'm trying to use Varien_Http_Client for calling external API, here's the code: $httpClient = new Varien_Http_Client(); $httpClient->setUri('https://api-host/api/endpoint'); $...
user avatar
0 votes
1 answer
174 views

Security Patch 7405 Pulling API 500 internal error logs

I've spent hours looking over the internet and cannot figure out where is the issue with the changed PHP lines. Problems only started after successfully updating patch 7405. Website and all other ...
user avatar
4 votes
3 answers
2k views

Remove specific criteria from Varien_Db_Select join

I have Varien_Db_Select object with some joins and I need to change condition in one of them. How can I do this? update: I found that condition in "from" part and then in "joinCondition" part. I can ...
user avatar
  • 1,595
1 vote
2 answers
100 views

Construct a method name for customer object dynamically

I have a Magento website with four stores. For each customer different cut off time will be assigned for each store. User is restricted to add product from only one store at a time. When user come to ...
user avatar
  • 1,397
2 votes
1 answer
688 views

invalid method in /lib/Varien/Object.php after update, causing maintenance mode

I just updated some modules and now my webshop keeps showing the maintenance page, whilst there is not maintenance.flag file in the root folder. I checked the /var/log and in the exception.log it ...
user avatar
2 votes
2 answers
209 views

Varien Queries AND and OR

I'm having some trouble mapping a SQL query to the "Varien syntax". So, I have a table where two of the columns are 'week' and 'year'. Now I want to grab a collection of data from that table where I ...
user avatar
  • 255
0 votes
1 answer
948 views

Error after update to 1.9.2.0 - item detail page

I've done a update to Magento 1.9.2.0 - still after the update I get the error message at my item detail page. Have anyone a idea to fix the problem? Invalid method ...
user avatar
  • 1
0 votes
1 answer
406 views

Create XLS File with Multiple Sheets

I found this class in Varien Varien_Convert_Parser_Xml_Excel however, I couldn't find any source on how to create an XLS file with multiple sheets in it. Note that it needs to be XLS not CSV.
user avatar
  • 1,319
5 votes
1 answer
2k views

Fatal error: Call to a member function extend() on a non-object in /home/stevenst/public_html/upgrade/lib/Varien/Simplexml/Config.php on line 600 [closed]

I have created a clone of my original site in a subdomain. Now this is the error I keep getting. Fatal error: Call to a member function extend() on a non-object in /home/stevenst/public_html/...
user avatar
  • 155
2 votes
1 answer
4k views

Why getSize() function is not working when apply filter

I want to get count after the collection filter by attributes.Actually i want filter order collections by non canceled ,non fraud' and use getSize() function to get count but it is given count result ...
user avatar
  • 75.4k
3 votes
2 answers
2k views

how does magento earn money?

How does magento profit as a company? If the community version is 100% free and they don't take a percent fee from extensions or add ons sold I know they charge for enterprise edition but is this ...
user avatar
  • 31
0 votes
1 answer
158 views

Which [varien] object is required to successfully run getCompilerStatus()?

I'm attempting to programmatically determine if Magento's compilation status is enabled or disabled. I found the function getCompilerStatus() in app/design/adminhtml/default/default/template/compiler/...
user avatar
  • 1,439
0 votes
3 answers
3k views

Getting error log for every URL hits in magento1.7

I am getting this error log for any url hit in my magento..What could be the reason and how to solve this? 2014-11-14T07:49:47+00:00 ERR (3): Notice: Undefined variable: cookieParams in /var/www/...
user avatar
3 votes
1 answer
3k views

Varien_Data_Tree_Node - Position nav menu items

Digging into the 1.9 RWD nav menu, I am fiddling with Varien_Data_Tree and Varien_Data_Tree_Node - I haven't worked with these classes directly before and they seem unfinished as there are several ...
user avatar
  • 4,628
0 votes
1 answer
735 views

Magento product edit issue after adding new attributes - Fatal error: Class 'Mage_Fileattributes_Block_Form

I have just added some new attributes to my default magento product group. Now when I go in a product to edit it or to add a new product I get this error appear in red font. Frontend of website is ...
user avatar
  • 3
2 votes
2 answers
1k views

Patching/rewrite files in lib/Varien

I would like to know people's thoughts on the best way to patch/rewrite Varien lib files. Specifically whey looking into a couple of issues one with checkboxes and one with image type inputs I found ...
user avatar
2 votes
3 answers
10k views

How to read CSV with multi columns and reside in magento root dir?

If a csv file with id, name, price columns reside in magento root dir How I can read this file and retrieve data using Varien_File_Csv() from custom model?
user avatar
  • 1,649
2 votes
1 answer
1k views

How to Validate Checkbox in Magento

In Form I have added code for checkbox as follows. $fieldset->addField('title', 'checkboxes', array( 'label' => Mage::helper('custommodule')->__('Title'), 'class' => '...
user avatar
  • 387
2 votes
1 answer
61 views

Strange arrays being output on front-end instead of website

Trying to setup version control on a pre-existing client's site. There have been a number of developers who have had their hands in this and I'm slowly modifying the .gitignore file in attempt to ...
user avatar
  • 1,439
2 votes
2 answers
2k views

Parsing a CSV file for custom options script

First off I'm new to Magento, so please forgive me for my ignorance. I would like to read from a CSV file that has item_id, sku, and the custom options data so I can use it in a foreach loop. I'm ...
user avatar
  • 43
1 vote
1 answer
4k views

How to delete order item from order object?

How to delete order item from order object? For example: $order = Mage::getModel('sales/order')->load(1); foreach($order->getAllItems() as $item) { $order->removeByItemId($item->...
user avatar
  • 946
0 votes
1 answer
477 views

How do I use elements in Varien_Data_Form_Element_*?

In system.xml one can simply use elements like text and select and all the tutorials out there are using these two as examples. But how should I use other elements listed in lib/Varien/Data/Form/...
user avatar
1 vote
1 answer
2k views

Varien_Event_Observer getName() method returns null

I don't understand why the Varien_Event_Observer object has getters and setters for th 'name' attribute. However when using it in the method defined by my config xml, calling getName() returns null? ...
user avatar
2 votes
1 answer
144 views

Inconsistency in `Varien_Object` exporting methods

I've been studying the source code of Magento recently, and I came across this snippet in Varien_Object, which is puzzling me: /** * Convert object attributes to array * * @param array $...
user avatar
4 votes
1 answer
7k views

How to reset Magento Form Validation?

I have a custom form in my magento store, and use varienform validation. Everything works fine. But requirement is, I need a clear button so that I can click that button to reset the form inputs ...
user avatar
  • 2,689
1 vote
1 answer
2k views

Controlling visibility of products by status (catalog and search)

What we have here is a class that extends Mage_Catalog_Model_Product_Status, and adds two CONST variables, STATUS_PENDING and STATUS_PREVIEW. What I am trying to find is the logic model that decides ...
user avatar
  • 861
2 votes
2 answers
7k views

Uncaught Reference Form Is Not Defined

I have a form in my .phtml file with the following form tag: <form id="coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post"> and the javascript:...
user avatar
  • 65
2 votes
1 answer
3k views

How to validate dynamically created forms on same page with VarienForm?

I'm creating onepage customer account and I need to validate dynamically created additional address forms, all on same page. I understand that in Magento you should use new VarienForm to validate ...
user avatar
  • 1,049
-2 votes
1 answer
1k views

getData() returns wrong data

I have a custom customer attribute, which isn't required, so it isn't set to every customer. but when I ask it if a customer has the data. (hasData('attribute')) if it doesn't exist it returns the ...
user avatar
  • 183
3 votes
1 answer
3k views

Filtering error when using custom Varien object collection in admin grid

I have created a custom Varien object collection for my admin module (because the data is not from a db) and have got it successfully to show in an admin grid. I built the collection by using the ...
user avatar
  • 1,299