|
Geek Advertising Banner System GAB is a highly configurable banner management system for vBulletin. |
Advertisement | |
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 - 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. |
#2
|
||||
|
||||
Do you recall what you changed, if anything, before the error message appeared?
What happens if you replace the following: Code:
$script = ''; Code:
$script = array();
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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';
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#6
|
|||
|
|||
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! |
#7
|
||||
|
||||
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'] = ''; Code:
SELECT * FROM PREFIXdatastore WHERE title = 'GAB_settings'; Code:
// ****** TABLE PREFIX ****** // Prefix that your vBulletin tables have in the database. $config['Database']['tableprefix'] = '';
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#8
|
|||
|
|||
Here u go Morgan
Quote:
Last edited by Hengis; 09-21-2008 at 10:53 AM.. |
#9
|
|||
|
|||
Any news on this please.....?
|
#10
|
||||
|
||||
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.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fatal Error | SorentoUltimate | Geek Auto-Linker | 0 | 10-29-2010 09:23 PM |
Help me >_< fatal error | tacbephot | Lizard Lounge | 3 | 01-17-2007 09:13 AM |
Fatal Error | Mythotical | Geek Auto-Linker | 9 | 09-11-2006 10:08 PM |
Fatal Error | vat0r | Geek Article and Review System | 3 | 05-19-2006 11:30 AM |
Fatal Error | GrendelKhan{TSU} | Geek Article and Review System | 1 | 01-18-2006 01:28 AM |