Intelligently rotate AdSense/AdMob, LifeStreetMedia, and other networks & make more money. GreenRobot Ad Server is an API enabled yield optimization system for publishers of websites and mobile apps written using PHP Laravel 6.4.
The error is that zone is empty. But it is not.
I can't paste exact message because I inserted code manually in database. Now when I click on AdSense Ad Code I'm getting exemption:
in AdsenseController.php (line 62)
at HandleExceptions->handleError(8, 'Trying to get property of non-object', 'www/test/adserver/app/Http/Controllers/AdsenseController.php', 62, array('data' => object(Collection), 'zones' => object(Collection), 'adsense_zones' => object(Collection), 'zones_tablename' => 'ad_zones', 'zone_mapping_tablename' => 'ad_zone_mappings', 'value' => object(Adsense), 'key' => 0, 'temp' => null))in AdsenseController.php (line 62)
Can you give a small walkthrough on how I can actaully get this code running? I compiled everything and followed the instructions. Do I then need to migrate this code into apache webserver html root.
when i run php composer.phar install it shows that as below:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
php artisan clear-compiled
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\PackageManifest' not found in /home/work/Code/adserver-master/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:181
Stack trace:
#0 /home/work/Code/adserver-master/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(151): Illuminate\Foundation\Application->registerBaseBindings() #1 /home/work/Code/adserver-master/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/wor...') #2 /home/work/Code/adserver-master/artisan(18): require_once('/home/wor...') #3 {main}
thrown in /home/work/Code/adserver-master/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 181
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255
On composer install result is:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement.
- doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.22) does not satisfy that requirement.
- Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
I am trying to run the adserver using the centos method(for production I'm using redhat8 on aws), I have installed phpmyadmin, mysql, mariadb, with nginx.
I follow all the instructions but when I get to running the containers (docker-compose up -d nginx mariadb) it gives a error:
"The command '/bin/sh -c set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && apt-get install -yqq apt-utils libzip-dev zip unzip && docker-php-ext-configure zip --with-libzip && docker-php-ext-install zip && php -m | grep -q 'zip'' returned a non-zero code: 100 "
I'm not sure what i am doing wrong and if there any other way of building it?