galen / PHP-Instagram-API

PHP 5.3+ wrapper for the Instagram API
337 stars 116 forks source link

Fatal error: Class 'Instagram\Core\BaseObjectAbstract' not found in C:\xampp\htdocs\domains\comealive\components\com_comealive\helpers\instagram\Media.php on line 25 #32

Open wachiuri opened 10 years ago

wachiuri commented 10 years ago

Kept giving me this error for practically every file required. Had to solve it like this in Instagram.php

namespace Instagram; require_once 'Core/BaseObjectAbstract.php'; require_once 'Core/Proxy.php'; require_once 'Net/ClientInterface.php'; require_once 'Net/CurlClient.php'; require_once 'Collection/CollectionAbstract.php'; require_once 'Collection/MediaCollection.php'; require_once 'Collection/TagMediaCollection.php'; require_once 'Net/ApiResponse.php'; require_once 'Media.php';

use \Instagram\Collection\MediaSearchCollection; use \Instagram\Collection\TagCollection; use \Instagram\Collection\TagMediaCollection; ....

superyarik commented 9 years ago

have same problem on one hosting. looks like it is server configuration problem