Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / [RESOLVED] Invalid argument supplied for foreach()

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] Invalid argument supplied for foreach()

More
11 years 7 months ago - 11 years 7 months ago #784 by extramex
I have a problem with AdsManager 2.91


I install, and when I try to post a new job, it marks the next error

Warning: Invalid argument supplied for foreach() in /home/nuevacha/public_html/administrator/components/com_adsmanager/models/content.php on line 329



And this is the Line 329
foreach($products as &$product) {
$product->cat = JText::_($product->cat);
if ($product->parent != "")
$product->parent = JText::_($product->parent);
$product->images = @json_decode($product->images);
if (!is_array($product->images))
$product->images = array();
}

Please help me
Last edit: 11 years 7 months ago by tompap.
More
11 years 7 months ago #786 by tompap
Did you do some changes in the code ?
Which version of adsmanager are you using ?
Which version of PHP

Could you activate system debug in Joomla and try again to save an ad
More
11 years 7 months ago #803 by extramex
Did you do some changes in the code ? NO, I install direct from zip archive without changes
Which version of adsmanager are you using ? AdsManager v2.91 and I try with v.290 and 2.82 and is the same problem
Which version of PHP? PHP version 5.3.26

Could you activate system debug in Joomla and try again to save an ad

500 - Ha ocurrido un error.
JDatabaseMySQL::query: 1146 - Table 'nuevacha_pagina.b17az_comprofiler' doesn't exist SQL=SELECT a.id FROM b17az_adsmanager_ads as a INNER JOIN b17az_adsmanager_adcat as adcat ON adcat.adid = a.id LEFT JOIN b17az_users as u ON a.userid = u.id LEFT JOIN b17az_comprofiler as cb ON cb.user_id = a.userid INNER JOIN b17az_adsmanager_categories as c ON adcat.catid = c.id LEFT JOIN b17az_adsmanager_categories as p ON c.parent = p.id GROUP BY a.id


Call stack
# Function Location
1 JAdministrator->dispatch() /home/nuevacha/public_html/administrator/index.php:46
2 JComponentHelper::renderComponent() /home/nuevacha/public_html/administrator/includes/application.php:153
3 JComponentHelper::executeComponent() /home/nuevacha/public_html/libraries/joomla/application/component/helper.php:351
4 require_once() /home/nuevacha/public_html/libraries/joomla/application/component/helper.php:383
5 JController->execute() /home/nuevacha/public_html/administrator/components/com_adsmanager/adsmanager.php:55
6 AdsmanagerControllerContents->display() /home/nuevacha/public_html/libraries/joomla/application/component/controller.php:761
7 AdsmanagerViewAdmin->display() /home/nuevacha/public_html/administrator/components/com_adsmanager/controllers/contents.php:59
8 AdsmanagerViewAdmin->_listcontents() /home/nuevacha/public_html/administrator/components/com_adsmanager/views/admin/view.html.php:57
9 AdsmanagerModelContent->getNbContents() /home/nuevacha/public_html/administrator/components/com_adsmanager/views/admin/view.html.php:296
10 JDatabase->loadObjectList() /home/nuevacha/public_html/administrator/components/com_adsmanager/models/content.php:375
11 JDatabaseMySQL->execute() /home/nuevacha/public_html/libraries/joomla/database/database.php:1100
12 JError::raiseError() /home/nuevacha/public_html/libraries/joomla/database/database/mysql.php:548
13 JError::raise() /home/nuevacha/public_html/libraries/joomla/error/error.php:251
More
11 years 7 months ago #811 by tompap
Please go in the adsmanager configuration > Third Party > User Profile => set No
Moderators: perry
Time to create page: 0.121 seconds
Powered by Kunena Forum