EVE-SECURE / joomla-in-eve

Automatically exported from code.google.com/p/joomla-in-eve
0 stars 0 forks source link

Call to a member function toArray() on a non-object #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I go to Components -> EvE -> Schedule
2.char/WalletJournal shows  "Immediately" as available Scheduled Time (all the 
others have a date showing they have been updated)
3.I manually select char/Walletjournal and -> Run now

What is the expected output? What do you see instead?
1.Expected output is a list of transactions in the frontend -> character wallet 
jorunal
2.Result is : "Fatal error: Call to a member function toArray() on a non-object 
in /var/www/osiris2011/plugins/eveapi/evewalletjournal.php on line 62"

Can you provide path and query segment URL of faulty page?

/index.php?option=com_eve&view=schedule
(I suppose this is what you mean)

What version of the product are you using? Please provide version of core
component (com_eve) and faulty component (com_...).
I use the complete set of available components from july 2010
- com_eve-0.6.256.zip 
- com_evecharsheet-0.6.256.zip 
- com_evechartracking-0.6.256.zip 
- com_evemarketorders-0.6.256.zip   
- com_evewalletjournal-0.6.256.zip 
- com_everesearch-0.6.256.zip 
- com_cron.zip 

Please provide any additional information below. Try turn on joomla debug
mode.

I've turned on debug mode, and got a lot of text at the end of the page. 
Unfortunatly, I do not know what text is relevant to you, and do not dare to 
copy/paste all of it here.

Every other feature works perfectly (by teh way, very nice job), it's just this 
one that returns a fatal error while attempting a manual update. The frontend 
page just returns the normal page with no entries in the wallet journal, no 
errors at all,

Original issue reported on code.google.com by mathmat...@gmail.com on 6 Mar 2011 at 1:16

GoogleCodeExporter commented 9 years ago
Ya, I've been getting the same issues, Its good to know that I'm not the only 
one having them. But I'm no expert by far so I'll need a little help with this. 
But I think that it is because the database name dosn't match up? I'm using 
mysql 4.1.22

this is the code snippit malfunctioning. and the line is this 
$value[] = $dbo->quote($entry[$field]); 
---------------------------------------------------------------------------
    private function _storeWalletJournal($xml, $entityID, $accounKey = 1000)
    {
        $dbo = JFactory::getDBO();
        $sql = 'INSERT IGNORE INTO #__eve_walletjournal (';
        $sql .= implode(',', array_map(array($dbo, 'nameQuote'), $this->_fields));
        $sql .= ") VALUES ";
        $values = array();
        foreach ($xml->result->entries->toArray() as $entry) {
            $entry['accountKey'] = $accounKey;
            $entry['entityID'] = $entityID;
            $value = array();
            foreach ($this->_fields as $field) {
                $value[] = $dbo->quote($entry[$field]); 
            }
            $values[] = '('.implode(',', $value).')';
        }
        if ($values) {

Original comment by southtex...@gmail.com on 19 Mar 2011 at 1:25

GoogleCodeExporter commented 9 years ago
I found that the tables taxReceiverID and taxAmount was missing from 
jos_eve_walletjournal
adding it has not solved the problem, but i will try i to resolve it. I will 
post it here if i found a solution. But some idea would be nice if someone give 
me a idea what can it be.

Original comment by marcomis...@googlemail.com on 24 May 2011 at 8:20

GoogleCodeExporter commented 9 years ago
ok, it's seems that private function _storeWalletJournal have nothing to store. 
Or better, i thing that due the last modification in incursion 1.4. I'm still 
investigating to find a solution (sorry, but my programming skills are not 
prefect, like my english^^)

Original comment by marcomis...@googlemail.com on 24 May 2011 at 11:00

GoogleCodeExporter commented 9 years ago
Hi,

Could someone give me please an update about the progress with this problem?

Would be very nice! 

Thanks!

Original comment by Cube1...@googlemail.com on 31 May 2011 at 6:53

GoogleCodeExporter commented 9 years ago
no update for now from me. I'm still trying to figure out why. But some log 
entrys about this error would be nice.

Original comment by marcomis...@googlemail.com on 1 Jun 2011 at 5:02

GoogleCodeExporter commented 9 years ago
CCP changed wallet journal row names from entries to transactions

see
http://code.google.com/p/joomla-in-eve/source/diff?spec=svn271&r=271&format=side
&path=/branches/dbchanges/com_evewalletjournal/plugins/eveapi_evewalletjournal/e
vewalletjournal.php

fixed in r271

Original comment by koval...@gmail.com on 4 Jun 2011 at 9:20

GoogleCodeExporter commented 9 years ago
fixed in release 0.7.277

Original comment by koval...@gmail.com on 23 Jun 2011 at 2:35