Keyword

Invalid Arguments

  • Ipshwitz
  • Ipshwitz's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago #113767 by Ipshwitz
Invalid Arguments was created by Ipshwitz
I went to add some more items in the K2 component today but when I clicked on Components -> K2 -> Items, I got the following messages:

Warning: Invalid argument supplied for foreach() in D:\Hshome\chriswise\chriswisephotography.com\administrator\components\com_k2\views\items\view.html.php on line 64

Warning: Invalid argument supplied for foreach() in D:\Hshome\chriswise\chriswisephotography.com\administrator\components\com_k2\views\items\view.html.php on line 168

Warning: Invalid argument supplied for foreach() in D:\Hshome\chriswise\chriswisephotography.com\administrator\components\com_k2\views\items\tmpl\default.php on line 108

Warning: Invalid argument supplied for foreach() in D:\Hshome\chriswise\chriswisephotography.com\libraries\joomla\database\database\mysql.php on line 383

So, I figured I'd reinstall K2 and then I got the following errors

Warning: Invalid argument supplied for foreach() in
D:\Hshome\chriswise\chriswisephotography.com\libraries\joomla\database\database\mysql.php on line 375

Warning: Invalid argument supplied for foreach() in D:\Hshome\chriswise\chriswisephotography.com\tmp\install_51a7a39a27f48\script.k2.php on line 220

The thing is, on the front end - the website views fine and it shows the K2 articles. But in the admin end, is where I get these errors and can't see previous items.

Joomla Version: 2.5.11
PHP Version: 5.2.17
K2 Version: 2.6.6

Please Log in or Create an account to join the conversation.

  • Ipshwitz
  • Ipshwitz's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago #113768 by Ipshwitz
Replied by Ipshwitz on topic Re: Invalid Arguments
A couple other updates, under Extension Manager -> Database, it lists my table structure as up to date.

When I try to create a new item I get:
TableK2Item: :store failed
Table './xxx/xxx_k2_items' is marked as crashed and should be repaired SQL=INSERT INTO `tdfhp_k2_items` (`id`,`title`,`alias`,`catid`,`published`,`introtext`,`fulltext`,`image_caption`,`image_credits`,`video_caption`,`video_credits`,`created`,`created_by`,`created_by_alias`,`publish_up`,`publish_down`,`access`,`ordering`,`featured`,`metadata`,`metadesc`,`metakey`,`params`,`language`) VALUES ('','Consistancy is Key','consistancy-is-key','14','0','

So i'm guessing this has something to do with it. But still not sure what is going on with it.

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #113769 by jean-philippe
Replied by jean-philippe on topic Re: Invalid Arguments
Hi Ipshwitz,

sounds very bad....

not sure what is your problem... but ...

this thread can be help you...
(the first part... don't follow the last link.)

also... if you can re-install to a fresh joomla 2.5.11 with the "latest" plugin version... it is maybe a good think to do...

Let me know plz..

Best Regards,
Emond, Jean-Philippe

Emond, Jean-Philippe

Please Log in or Create an account to join the conversation.

  • Ipshwitz
  • Ipshwitz's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago #113770 by Ipshwitz
Replied by Ipshwitz on topic Re: Invalid Arguments
Thanks for the suggestion :)

However... it didn't work :(

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #113771 by jean-philippe
Replied by jean-philippe on topic Re: Invalid Arguments
If you have updated K2,

try to clean cache of your joomla...

[Site] => [Maintenance] => ....


Best regards,
Emond, Jean-Philippe

Emond, Jean-Philippe

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #113772 by Luciano
Replied by Luciano on topic Re: Invalid Arguments
Hello!

I do not use k2mart.

Same issue happened today. same warnings at Backend AND Frontend. no K2 items anywhere!!! PANIC!!! :ohmy:

So, I access phpMyAdmin and found some strange issue: a "table busy" message at "k2_items" table.

So I guess Joomla cannot read it because that table was "busy"

Just select that table and hit "repair table" at command menu (below).

Successful table repared!

Back to Joomla em Voilá! all K2 items are back to the show! :cheer:

I hope this tip can help you.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum