EVE-SECURE / joomla-in-eve

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

An error, when I call to manual API Shedule function #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am open 'Components -> EVE -> Shedule' in backend
2. Check any API CALL.
3. And press 'Run now' button.

Joomla! tells me: 

Fatal error: Call to a member function toArray() on a non-object in 
/var/www/toxa_t/data/www/off.mk.ua/plugins/eveapi/evewalletjournal.php on line 
62

and die

The URL query is:

http://off.mk.ua/administrator/index.php?option=com_eve&view=schedule

Versions of all components is 0.7.277

On joomla! debug mode.
When i'm open Components -> EVE -> Shedule
There is 17 queries to database
SELECT * 
  FROM jos_session 
  WHERE session_id = 'b4ba955e28f0a66d6d99198245bb7e76'
DELETE 
  FROM jos_session 
  WHERE ( time < '1311877120' )
SELECT * 
  FROM jos_session 
  WHERE session_id = 'b4ba955e28f0a66d6d99198245bb7e76'
UPDATE `jos_session` 
  SET `time`='1311878020',`userid`='62',`usertype`='Super Administrator',`username`='admin',`gid`='25',`guest`='0',`client_id`='1',`data`='__default|a:8:{s:22:\"session.client.browser\";s:108:\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30\";s:15:\"session.counter\";i:214;s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:6:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}s:11:\"application\";a:1:{s:4:\"data\";O:8:\"stdClass\":1:{s:4:\"lang\";s:0:\"\";}}s:10:\"com_cpanel\";a:1:{s:4:\"data\";O:8:\"stdClass\":1:{s:9:\"mtupgrade\";O:8:\"stdClass\":1:{s:7:\"checked\";b:1;}}}s:9:\"com_menus\";a:1:{s:4:\"data\";O:8:\"stdClass\":1:{s:8:\"menutype\";s:8:\"mainmenu\";}}s:7:\"com_eve\";a:1:{s:4:\"data\";O:8:\"stdClass\":2:{s:9:\"alliances\";O:8:\"stdClass\":4:{s:6:\"filter\";O:8:\"stdClass\":2:{s:6:\"search\";s:0:\"\";s:5:\"owner\";i:0;}s:10:\"limitstart\";s:4:\"1320\";s:8:\"ordercol\";s:7:\"al.name\";s:9:\"orderdirn\";s:3:\"ASC\";}s:8:\"schedule\";O:8:\"stdClass\":2:{s:6:\"filter\";O:8:\"stdClass\":3:{s:6:\"search\";s:0:\"\";s:5:\"state\";s:0:\"\";s:7:\"apicall\";s:1:\"0\";}s:4:\"list\";O:8:\"stdClass\":4:{s:5:\"start\";i:0;s:5:\"limit\";s:2:\"20\";s:8:\"ordering\";s:8:\"typeCall\";s:9:\"direction\";s:3:\"ASC\";}}}}s:6:\"global\";a:1:{s:4:\"data\";O:8:\"stdClass\":1:{s:4:\"list\";O:8:\"stdClass\":1:{s:5:\"limit\";s:2:\"20\";}}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";s:2:\"62\";s:4:\"name\";s:13:\"Administrator\";s:8:\"username\";s:5:\"admin\";s:5:\"email\";s:26:\"anton.shedlovsky@gmail.com\";s:8:\"password\";s:65:\"4f15f75d40ff9bad2ad22cf11652513c:LSUPVFvRNRkuzh8OgGkLcbHNPeJj6N2D\";s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";s:19:\"Super Administrator\";s:5:\"block\";s:1:\"0\";s:9:\"sendEmail\";s:1:\"1\";s:3:\"gid\";s:2:\"25\";s:12:\"registerDate\";s:19:\"2011-07-26 17:26:31\";s:13:\"lastvisitDate\";s:19:\"2011-07-28 13:20:25\";s:10:\"activation\";s:0:\"\";s:6:\"params\";s:104:\"admin_language=ru-RU\nlanguage=ru-RU\neditor=ckeditor\nhelpsite=http://www.joomla-ua.org/help/\ntimezone=2\n\n\";s:3:\"aid\";i:2;s:5:\"guest\";i:0;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:74:\"/var/www/toxa_t/data/www/off.mk.ua/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":5:{s:14:\"admin_language\";s:5:\"ru-RU\";s:8:\"language\";s:5:\"ru-RU\";s:6:\"editor\";s:8:\"ckeditor\";s:8:\"helpsite\";s:30:\"http://www.joomla-ua.org/help/\";s:8:\"timezone\";s:1:\"2\";}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}s:13:\"session.token\";s:32:\"7200811dada54199f76cf1fb2dadb60c\";s:19:\"session.timer.start\";i:1311871676;s:18:\"session.timer.last\";i:1311878015;s:17:\"session.timer.now\";i:1311878015;}'
  WHERE session_id='b4ba955e28f0a66d6d99198245bb7e76'
SELECT folder AS type, element AS name, params 
  FROM jos_plugins 
  WHERE published >= 1 
  AND access <= 2 
  ORDER BY ordering
SELECT * 
  FROM jos_components 
  WHERE parent = 0
SELECT * 
  FROM (jos_eve_sections) 
  WHERE component = '' 
  AND VIEW = 'schedule'
SELECT template 
  FROM jos_templates_menu 
  WHERE client_id = 1 
  AND menuid = 0
SELECT ap.*, sc.*, CONCAT(`type`, '/',`call`) AS typeCall, u.name AS userName, 
c.name AS characterName 
  FROM (jos_eve_schedule AS sc) 
  LEFT JOIN jos_eve_apicalls AS ap 
  ON ap.id=sc.apicall  
  LEFT JOIN jos_eve_accounts AS a 
  ON sc.userID=a.userID  
  LEFT JOIN jos_users AS u 
  ON a.owner=u.id  
  LEFT JOIN jos_eve_characters AS c 
  ON sc.characterID=c.characterID 
  ORDER BY typeCall ASC 
  LIMIT 0, 20
SELECT ap.*, sc.*, CONCAT(`type`, '/',`call`) AS typeCall, u.name AS userName, 
c.name AS characterName 
  FROM (jos_eve_schedule AS sc) 
  LEFT JOIN jos_eve_apicalls AS ap 
  ON ap.id=sc.apicall  
  LEFT JOIN jos_eve_accounts AS a 
  ON sc.userID=a.userID  
  LEFT JOIN jos_users AS u 
  ON a.owner=u.id  
  LEFT JOIN jos_eve_characters AS c 
  ON sc.characterID=c.characterID 
  ORDER BY typeCall ASC
SELECT `id`, CONCAT(`type`, '/', `call`) AS typeCall 
  FROM (jos_eve_apicalls) 
  ORDER BY `type` ASC, `call` ASC
SELECT id, title, module, position, content, showtitle, control, params 
  FROM jos_modules AS m 
  LEFT JOIN jos_modules_menu AS mm 
  ON mm.moduleid = m.id 
  WHERE m.published = 1 
  AND m.access <= 2 
  AND m.client_id = 1 
  ORDER BY position, ordering
SELECT a.name, a.admin_menu_link, a.admin_menu_img 
  FROM jos_components AS a 
  INNER JOIN jos_components AS b 
  ON b.id = a.parent 
  WHERE b.OPTION = 'com_eve' 
  AND b.parent = 0 
  ORDER BY a.ordering ASC
SELECT a.*, SUM(b.home) AS home 
  FROM jos_menu_types AS a 
  LEFT JOIN jos_menu AS b 
  ON b.menutype = a.menutype 
  GROUP BY a.id
SELECT * 
  FROM jos_components 
  WHERE `option` <> "com_frontpage" 
  AND `option` <> "com_media" 
  AND enabled = 1 
  ORDER BY ordering, name
SELECT COUNT(*) 
  FROM jos_messages 
  WHERE state = 0 
  AND user_id_to = 62
SELECT COUNT( session_id ) 
  FROM jos_session 
  WHERE guest <> 1

EVE IP is registered, owner of characters and corporation is associated, joomla 
version is Joomla! 1.5.23 Stable [ senu takaa ama baji ] 04-March-2011 18:00 GMT

Original issue reported on code.google.com by anton.sh...@gmail.com on 28 Jul 2011 at 6:45

GoogleCodeExporter commented 9 years ago
Issue 44 has been merged into this issue.

Original comment by koval...@gmail.com on 19 Aug 2011 at 8:25

GoogleCodeExporter commented 9 years ago
Guys, would any of you care to send me a working full API key? I don't any 
account subscribed right now, so figuring out what's wrong is kinda difficult ;)

Original comment by koval...@gmail.com on 19 Aug 2011 at 8:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Simple solution...
if (defined($xml->result->transactions)) {
            foreach ($xml->result->transactions->toArray() as $entry) {
                $entry['accountKey'] = $accounKey;
                $entry['entityID'] = $entityID;
                $value = array();
                foreach ($this->_fields as $field) {
                    $value[] = $dbo->quote($entry[$field]); 
                }
                $values[] = '('.implode(',', $value).')';
            }
        }

Original comment by SerijVe...@gmail.com on 31 Aug 2011 at 8:23