The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Advertising Banner System (http://www.thevbgeek.com/forumdisplay.php?f=28)
-   -   All scripts have GONE plus Fatal Error (http://www.thevbgeek.com/showthread.php?t=4625)

Hengis 09-20-2008 06:13 PM

All scripts have GONE plus Fatal Error
 
Hi

I installed GABS today and everything was going well...infact, I have added about 15 banners (lot of work)! I went into scripts to add memberinfo and then the system threw up a fatal error: Fatal error: Cannot use string offset as an array in /home/XXXX/public_html/geek/gab/includes/gab_class_core.php on line 51

The screen refreshed and then I noticed ALL of my scripts had gone :confused: - My forum was also down - only the above error showing - so I have disabled the mod and my forum looks pretty crap now, with empty ad boxes everywhere!

Please can I have some help on this as soon as possible, thanks.

Morgan 09-20-2008 07:59 PM

Do you recall what you changed, if anything, before the error message appeared?

What happens if you replace the following:
Code:

$script = '';
With the following:
Code:

$script = array();
In the gab_class_core.php file?

Hengis 09-20-2008 08:43 PM

Hi,

All I did was delete the "memberinfo" script that I had created.

I have edited the PHP file and I still receive this error: Fatal error: Cannot use string offset as an array in /home/xxxx/public_html/geek/gab/includes/gab_class_core.php on line 51

Morgan 09-20-2008 09:06 PM

Okay, you can undo that edit. Please run the following query and post the results:
Code:

# add your vB table prefix to the datastore table name if you use a vB table prefix
SELECT * FROM datastore WHERE title = 'GAB_settings';

Also go to the ACP -> GAB -> Settings -> Debug and copy-paste what you see.

Hengis 09-20-2008 09:55 PM

I don't know how to do the first thing, sorry.

I have a live board with over 1,500 visitors online right now, if I turn on GAB to run the debug then my site will go down again...won't it?

Hengis 09-20-2008 10:10 PM

Code:

>> START SETTINGS -------
>> END SETTINGS -------
>> START CATS -------

$results = array(
          '1' => array(
            'id' => '1',
            'title' => 'Header Banners',
            'ordinal' => '5',
          ),
          '2' => array(
            'id' => '2',
            'title' => 'Skyscraper Banners',
            'ordinal' => '20',
          ),
          '3' => array(
            'id' => '3',
            'title' => 'Footer Banners',
            'ordinal' => '10',
          ),
          '4' => array(
            'id' => '4',
            'title' => 'Other Items',
            'ordinal' => '30',
          ),
);

>> END CATS -------
>> START ADS -------

$results = array(
            '1' => array(
                'id' => '1',
                'title' => 'RevResponse',
                'startdate' => '1221782400',
                'enddate' => '1230595200',
                'img' => '',
                'hits' => '12',
                'views' => '964',
                'url' => '',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '1',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<STYLE type=text/css>
img.TPheadimg_w_nd01h{width:80px;height:60px;}
img.TPfootimg_w_nd01h{width:38px;height:60px;}
a.TPcell_w_nd01h{font-family:verdana,arial,helvetica; text-decoration:underline; font-size: 10px; font-weight:bold; font-style:normal; color:#CC0000; padding: 0px;}
a:hover.TPcell_w_nd01h{font-family:verdana,arial,helvetica; text-decoration:underline; font-size: 10px; font-weight:bold; font-style:normal; color:#FD7F7F;}
.TPtable_w_nd01h{font-family:verdana,arial,helvetica; border:1px solid; background:#FFFFFF; border-color:#CC0000; border-collapse:collapse;width:468px;height:60px; font-size:10px;}
.TPcell_w_nd01h{font-family:verdana,arial,helvetica; font-size: 10px; font-weight:normal; font-style:normal; color:#000000; padding:4px;}
.TPheader_w_nd01h{font-family:verdana,arial,helvetica; padding:0px; height:40px; background-image:url('http://img.tradepub.com/images/bimages/468w_red_top_tech.gif');background-repeat:no-repeat;background-position:top center; text-align:center;}
.TPfooter_w_nd01h{padding:0px; height:25px; background-image:url('http://img.tradepub.com/images/bimages/468w_red_bot.gif');background-repeat:no-repeat;background-position:bottom center;}
img.cover {width:45px;height:60px;}
a.TPheader_w_nd01h{text-decoration:underline; font-size: 10px; font-weight:bold; font-style:normal; color:#CC0000;background:0;} a:hover.TPheader_w_nd01h{text-decoration:underline; font-size: 10px; font-weight:bold; font-style:normal; color:#FD7F7F;background:0;}</STYLE><script language="javascript" src="http://cts.tradepub.com/cts4/?ptnr=xxxxxxx&tm=w_nd01h&cat=Comp&type=all&key=&trk=header"></script>',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '2' => array(
                'id' => '2',
                'title' => 'Site Advert',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '31',
                'views' => '1189',
                'url' => 'http://www.xxxxxx.com/advertise.php',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '2',
                'type' => '3',
                'template' => '0',
                'catid' => '1',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<img src="images/banners/look_468.gif"  width="468" height="60" border="0" />',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '3' => array(
                'id' => '3',
                'title' => 'Uniblue Spy Eraser',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '9',
                'views' => '810',
                'url' => '',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '1',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<a href="http://send.onenetworkdirect.net/z/9860/CD104922/"><img src="http://show.onenetworkdirect.net/42/104922/9860" alt="FREE Spyware Scan!" border="0"></a>',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '4' => array(
                'id' => '4',
                'title' => 'Ad Aware',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '13',
                'views' => '242',
                'url' => 'http://send.onenetworkdirect.net/z/19945/CD104922/',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '1',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<img src="http://send.onenetworkdirect.net/42/104922/19945/" alt="" border="0">',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '5' => array(
                'id' => '5',
                'title' => 'Uniblue - Speed up my PC',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '8',
                'views' => '152',
                'url' => 'http://send.onenetworkdirect.net/z/5358/CD104922/',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '1',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<img src="http://show.onenetworkdirect.net/42/104922/5358" alt="FREE Performance Scan!" border="0">',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '6' => array(
                'id' => '6',
                'title' => 'Spam Fighter',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '10',
                'views' => '191',
                'url' => 'http://send.onenetworkdirect.net/z/6807/CD104922/',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '1',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<img src="http://show.onenetworkdirect.net/42/104922/6807" alt="Spam Filter for Outlook and Outlook Express" border="0">',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '7' => array(
                'id' => '7',
                'title' => 'TribalFusion',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '0',
                'views' => '456',
                'url' => '',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '2',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<script type="text/javascript"><!--
  e9 = new Object();
  e9.size = "160x600,120x600";
  e9.addBlockingCategories="Adult,Alcohol,Political,Religious,Tobacco,Violence,Warning,Audio,Pop-under,Pop-up,Floating,Flashing,Full-page";
//--></script>
<script type="text/javascript" src="http://tags.expo9.exponential.com/tags/PCHelpForumcom/Forums/tags.js"></script>',
                'templatetype' => '1',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '8' => array(
                'id' => '8',
                'title' => 'UniBlue - Registry Booster - Skyscraper',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '0',
                'views' => '78',
                'url' => '',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '2',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '2',
                'scripts' => '',
                'forums' => '|377|296|295|309|310|403|335|333|316|397|',
                'html' => '<a href="http://send.onenetworkdirect.net/z/5344/CD104922/"><img src="http://show.onenetworkdirect.net/42/104922/5344" alt="FREE Registry Scan!" border="0"></a>',
                'templatetype' => '1',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '9' => array(
                'id' => '9',
                'title' => 'Spy Eraser - Vertical',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '0',
                'views' => '176',
                'url' => '',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '2',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '<a href="http://send.onenetworkdirect.net/z/9862/CD104922/"><img src="http://show.onenetworkdirect.net/42/104922/9862" alt="FREE Spyware Scan!" border="0"></a>',
                'templatetype' => '1',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '10' => array(
                'id' => '10',
                'title' => 'Speed up my PC - Uniblue',
                'startdate' => '0',
                'enddate' => '0',
                'img' => '',
                'hits' => '0',
                'views' => '15',
                'url' => '',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '0',
                'width' => '0',
                'frequency' => '1',
                'type' => '3',
                'template' => '0',
                'catid' => '2',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '2',
                'scripts' => '',
                'forums' => '|335|347|336|337|338|339|341|390|333|316|397|',
                'html' => '<a href="http://send.onenetworkdirect.net/z/6676/CD104922/"><img src="http://show.onenetworkdirect.net/42/104922/6676" alt="FREE Performance Scan!" border="0"></a>',
                'templatetype' => '1',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
            '11' => array(
                'id' => '11',
                'title' => 'Site Advert - Vert',
                'startdate' => '0',
                'enddate' => '0',
                'img' => 'http://www.xxxxx.com/geek/gab/images/0/look_160.gif',
                'hits' => '0',
                'views' => '0',
                'url' => 'http://www.xxxxx.com/advertise.php',
                'userid' => '0',
                'max_views' => '0',
                'max_hits' => '0',
                'isactive' => '1',
                'height' => '600',
                'width' => '160',
                'frequency' => '2',
                'type' => '1',
                'template' => '0',
                'catid' => '2',
                'trackviews' => '1',
                'trackhits' => '1',
                'scriptoption' => '1',
                'forumoption' => '1',
                'scripts' => '',
                'forums' => '',
                'html' => '',
                'templatetype' => '0',
                'suspended' => '0',
                'editimage' => '0',
                'editfrequency' => '0',
                'editbanner' => '0',
            ),
);

>> END ADS -------

Templates containing $GAB_ads[x] variables:

GAB Folder Check:
You seem to be missing your GAB folder or your Server Path to the GAB folder is invalid. That needs to be there for uploading banners!

I ran the debug and replaced my forum name with xxxx's

Morgan 09-21-2008 12:39 AM

For the first thing, if you gave yourself permission in the vB config.php file:
Code:

        //        ****** USERS WITH QUERY RUNNING PERMISSIONS ******
        //        The users specified here will be allowed to run queries from the control panel.
        //        See the above entries for more information on the format.
        //        Please note that the ability to run queries is quite powerful. You may wish
        //        to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '';

Then run the following query from the ACP -> Maintenance -> Execute SQL Query:
Code:

SELECT * FROM PREFIXdatastore WHERE title = 'GAB_settings';
Replace PREFIX with your vB database table prefix, also found in the vB config.php file:
Code:

        //        ****** TABLE PREFIX ******
        //        Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';


Hengis 09-21-2008 09:08 AM

Here u go Morgan :)

Quote:

GAB_settings s:3059:"a:18:{s:10:"usergroups";a:0:{}s:15:"usergr oups_view";a:21:{i:0;i:61;i:1;i:4;i:2;i:73;i:3;i:6 ;i:4;i:8;i:5;i:85;i:6;i:33;i:7;i:66;i:8;i:80;i:9;i :7;i:10;i:82;i:11;i:86;i:12;i:2;i:13;i:34;i:14;i:8 3;i:15;i:5;i:16;i:74;i:17;i:77;i:18;i:87;i:19;i:1; i:20;i:3;}s:13:"fieldtotoggle";i:0;s:15:"field_val ue_yes";s:0:"";s:9:"max_width";N;s:10:"max_height" ;N;s:22:"server_path_to_banners";s:40:"/home/xxxx/public_html/geek/gab/images";s:16:"media_extensions";N;s:14:"url_to_ban ners";s:42:"http://www.xxxx.com/geek/gab/images";s:15:"url_advertising";s:0:"";s:16:"url_tu rn_off_ads";s:0:"";s:12:"redirectpage";s:16:"gab_r edirect.php";s:9:"cyclerate";i:4300;s:16:"persist_ throttle";N;s:13:"htmltemplates";s:0:"";s:6:"block s";a:2:{i:1;a:4:{s:5:"title";s:7:"Default";s:7:"wr apper";i:0;s:6:"method";i:1;s:3:"ads";a:1:{i:0;a:5 :{s:6:"adtype";i:3;s:6:"number";i:1;s:9:"weighting ";i:100;s:10:"cat_option";i:2;s:4:"cats";a:1:{i:0; i:1;}}}}i:2;a:4:{s:5:"title";s:8:"Vertical";s:7:"w rapper";i:0;s:6:"method";i:1;s:3:"ads";a:1:{i:0;a: 5:{s:6:"adtype";i:3;s:6:"number";i:1;s:9:"weightin g";i:100;s:10:"cat_option";i:2;s:4:"cats";a:1:{i:0 ;i:2;}}}}}s:7:"scripts";a:14:{s:6:"MASTER";a:4:{s: 4:"name";s:6:"MASTER";s:11:"description";s:0:"";s: 9:"usemaster";i:0;s:6:"blocks";a:2:{i:0;i:1;i:1;i: 2;}}s:12:"forumdisplay";a:4:{s:4:"name";s:12:"foru mdisplay";s:11:"description";s:0:"";s:9:"usemaster ";s:1:"1";s:6:"blocks";a:0:{}}s:10:"showthread";a: 4:{s:4:"name";s:10:"showthread";s:11:"description" ;s:0:"";s:9:"usemaster";s:1:"1";s:6:"blocks";a:0:{ }}s:5:"index";a:4:{s:4:"name";s:5:"index";s:11:"de scription";s:0:"";s:9:"usemaster";s:1:"1";s:6:"blo cks";a:0:{}}s:8:"editpost";a:4:{s:4:"name";s:8:"ed itpost";s:11:"description";s:0:"";s:9:"usemaster"; s:1:"1";s:6:"blocks";a:0:{}}s:9:"newthread";a:4:{s :4:"name";s:9:"newthread";s:11:"description";s:0:" ";s:9:"usemaster";s:1:"1";s:6:"blocks";a:0:{}}s:8: "calendar";a:4:{s:4:"name";s:8:"calendar";s:11:"de scription";s:0:"";s:9:"usemaster";s:1:"1";s:6:"blo cks";a:0:{}}s:6:"online";a:4:{s:4:"name";s:6:"onli ne";s:11:"description";s:0:"";s:9:"usemaster";s:1: "1";s:6:"blocks";a:0:{}}s:11:"printthread";a:4:{s: 4:"name";s:11:"printthread";s:11:"description";s:0 :"";s:9:"usemaster";s:1:"1";s:6:"blocks";a:0:{}}s: 7:"profile";a:4:{s:4:"name";s:7:"profile";s:11:"de scription";s:0:"";s:9:"usemaster";s:1:"1";s:6:"blo cks";a:0:{}}s:6:"search";a:4:{s:4:"name";s:6:"sear ch";s:11:"description";s:0:"";s:9:"usemaster";s:1: "1";s:6:"blocks";a:0:{}}s:6:"usercp";a:4:{s:4:"nam e";s:6:"usercp";s:11:"description";s:0:"";s:9:"use master";s:1:"1";s:6:"blocks";a:0:{}}s:9:"adv_index ";a:4:{s:4:"name";s:9:"adv_index";s:11:"descriptio n";s:0:"";s:9:"usemaster";s:1:"1";s:6:"blocks";a:0 :{}}s:9:"staff_app";a:4:{s:4:"name";s:9:"staff_app ";s:11:"description";s:0:"";s:9:"usemaster";i:1;s: 6:"blocks";a:1:{i:0;i:2;}}}s:9:"frequency";a:4:{i: 0;a:2:{s:11:"description";s:3:"Low";s:5:"value";s: 1:"1";}i:1;a:2:{s:11:"description";s:6:"Medium";s: 5:"value";s:1:"2";}i:2;a:2:{s:11:"description";s:4 :"High";s:5:"value";s:1:"3";}i:3;a:2:{s:11:"descri ption";s:9:"Mega High";s:5:"value";s:1:"4";}}}"; 0

Hengis 09-21-2008 08:52 PM

Any news on this please.....?

Morgan 09-22-2008 05:17 AM

The good news is that the settings are still there. The odd news is that there is a strange remnant at the end of that entry: ; 0

From here I cannot tell if that is from a mis-copy/paste or truly is a part of the entry. Did you happen to notice whether you were experiencing MySQL connection problems at some point? If you want me to investigate further, PM me admin level ACP access with Can Administer GAB permission as well as phpMyAdmin access.


All times are GMT. The time now is 10:24 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.