Jump to content

stapel_eliz

Approved members
  • Content Count

    25
  • Joined

  • Last visited

Everything posted by stapel_eliz

  1. I may have found a fix, and it involves editing the "async.js" file. I am NOT a coder, so USE AT YOUR OWN RISK! In the "development" folder at the github page for Revive, the "www/delivery_dev/async.js" file contains the following: 74 /** 75 * The start event handler. Delivery can be prevented by setting e.detail.start = false. 76 * 77 * @param {CustomEvent} e 78 */ 79 start: function (e) 80 { 81 if (e.detail && e.detail.hasOwnProperty('start') && !e.detail.start) { 82 return; 83 } 84 85 rv.removeEventListener('start', rv.start); 86 87 rv.dispatchEvent('refresh'); 88 }, I took the comment to heart, and decided to copy my Javascript (which was functioning correctly in reading the GDPR cookie value) into the "async.js" file. Note: In the actual "async.js" file, everything is in one line, rather than nicely broken up so as to be easily read. For testing, I first inserted my coding without stripping all of the empty spaces, line returns, etc. So my new "start: function (e)" looks like this: start:function(g){ // Begin my custom coding for reading the cookie value var CB_value, CB_consent, cb2ox; if (document.cookie.split(';').filter(function(item){return item.indexOf('CookieConsent=') >= 0}).length){ function getCBval(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i <ca.length; i++) { var c = ca; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } } var CBval = getCBval("CookieConsent"); if (CBval == '0'){ CB_value = 0; CB_consent = false; } else{ CB_split = CBval.split(","); CB_array = new Array(); for(i=0;i<=5;i++){ CB_array = CB_split; } CB_value = CB_array[4]; if (CB_value == "marketing:true"){ CB_consent = true; } else{ CB_consent = false; } } } else{ CB_consent = false; } cb2ox = CB_consent.toString(); // End of my custom coding for reading the cookie value // Added "or cb2ox = 'false'" to "if" statement // "if" was "(g.detail&&g.detail.hasOwnProperty("start")&&!g.detail.start)" // I added an extra set of parentheses around the "if" condition // Then I added "||(cb2ox=="false")" inside the "if" condition, after the original condition if((g.detail&&g.detail.hasOwnProperty("start")&&!g.detail.start)||(cb2ox=="false")){ return } f.removeEventListener("start",f.start); f.dispatchEvent("refresh") }, In the above, I've included comments delineating my cookie coding, and also the addition in the "if" statement. I have tested the above script in each of Firefox and Internet Explorer, and it appears to work. My cookie script determines if the current website visitor has selected "true" or "false" for accepting "marketing" cookies (this information being available in the "CookieConsent" cookie). If the user has elected NOT to accept marketing cookies (so ads should not display, and the "cb2ox" variable reads "false") or if the user is seeing the GDPR screen for the first time (so GDPR regs require that no cookies be set - yet), then nothing is displayed for any of my Revive "zones". Phew! Eliz.
  2. I realize that your post is nearly a year old, but would you be able to clarify what you did? For instance, my "db_schema.ini" file looks pretty vanilla, with the "zones" section containing this: [zones] zoneid = 129 affiliateid = 1 zonename = 130 description = 130 delivery = 129 zonetype = 129 category = 162 width = 129 height = 129 ad_selection = 162 chain = 162 prepend = 162 append = 162 appendtype = 129 forceappend = 2 inventory_forecast_type = 129 comments = 34 cost = 1 cost_type = 1 cost_variable_id = 2 technology_cost = 1 technology_cost_type = 1 updated = 142 block = 129 capping = 129 session_capping = 129 what = 162 rate = 1 pricing = 130 oac_category_id = 1 ext_adselection = 2 show_capped_no_cookie = 129 I see nothing that might be particular to my installation, and I have no idea what is the "meaning" of "newZoneField = 2", and would appreciate clarification, as it may assist in an issue I'm facing. Thank you! Eliz.
  3. andrewatfornax: Is there any ETA on this documentation yet? Thank you!
  4. andrewatfornax: Would you be able to provide an example of what "passing a variable into Revive Adserver in the invocation code" might look like? Thank you! Eliz.
  5. My upgrade was trouble-free, and I can confirm that the Revive cookie is anonymised. Eliz.
  6. I am trying to coordinate between a GDPR cookie-setting script and Revive. The cookie-setting script starts out as "false" (so no cookies are supposed to be set) and asks the user to pick the user's "level" of cookies ("necessary", "preferences", "statistics", and "marketing"). The script then sets a cookie as either a "0" (meaning "opts out of everything non-necessary") or else as a more standard type cookie (containing something along the lines of "necessary:true,preferences:[value],statistics:[value],marketing:[value]", where [value] is "true" or "false"). For the purposes of discussion, let's call the cookie "CB". I have figured out how to have a Javascript check CB, and return either "true" for marketing, or else "false", writing this value (as a string) into a global variable "cb2ox" (for "converting CB's "marketing" value to an OpenX tag value"). I have figured out how to have another Javascript add "data-revive-cb2ox=[value of cb2ox]" to the "ins" tag in the HTML of a given webpage. (That is, if you view the DOM for the page, the new name-value pair is displayed within the "ins" tag.) I've done this scripting set-up on a page that I'm using for testing. I have set a Delivery Rule (that is, "Only display this banner when:") as: "(Site-PageURL DoesNotContain [testing page's URL]) OR (Site-Variable cb2ox Contains true)" If I'm understanding the Rule correctly, this means that ads will be displayed in the customary way on all pages other than [testing page's URL]. However, when the URL is [testing page's URL], the other rule should be checked; that is, the value of "data-revive-cb2ox" should be checked and, if NOT "true", then no ads should display. However, ads are still displaying. So clearly I'm doing something wrong. There is no documentation for "Site - Variable", so the error may lie there. Or maybe I've got the Delivery Rule set up wrong. Either way, I'd appreciate advice, instruction, links,... commiseration, sympathy,... whatever.... Thank you! Eliz.
  7. Within the /www/delivery/ directory, I note the following files: core.13871 248,520,704 12/13/2015 -rw------- core.17991 247,996,416 12/24/2015 -rw------- core.2044 248,246,272 11/12/2015 -rw------- core.24385 249,286,656 01/09/2016 -rw------- core.27415 248,008,704 07/18/2015 -rw------- core.31189 247,980,032 08/10/2015 -rw-------What are these? More to the point, do I need them? If so, do I need all of them, or only the most recent one? If not, may I delete them? Thank you. Eliz.
  8. Is there any plugin that would allow end users on my site to click a "report this ad" link, so I would get an e-mail telling me exactly which ad was problemmatic? (Or, if this is a separate scripting thing, or a third-party service, does anybody have a URL they could recommend?) Thank you! Eliz.
  9. I have been advised to change the password on my SQL database, in hopes of securing it (in case the hacker managed to snag that information). However, I can't seem to get the password to update. I've gone into phpMyAdmin inside my cPanel, and tried setting a new password. Then I changed the password in the config.php file. But I can't log in with the new password; however, the old password continues to work. I've tried setting up a new user with a new password, while removing the old user. After updating the config file, I couldn't log in with the new info, but I could still log in with the old info. I tried deleting the old user completely. After updating the config file, I still couldn't log in with the new info, but I could still log in with the old info. I tried importing the old database into a new database (with a new name), and creating a new user with a new password for the new database. After updating the config file, I couldn't log in with the new info, but I could still log in with the old info. What the frick am I doing wrong? Thank you. Eliz.
  10. Today, I discovered another hack of my adserver. I'd had version 3.1, with the usual precautions, file permissions, etc. The new hack appended a Javascript to the text in the "htmlcache" field. There was nothing in the "append" or "prepend" fields. The script was tacked onto the intended text. It put an iframe (calling an undesired URL) at an absolute position, did something with cookies (?), and then put another absolute-position iframe with another undesired different URL. I've forwarded specific details to the proper e-mail address for this issue; I haven't yet heard back. I have been unable to locate any other instances of this particular hack, either here on through Google in general. I know that details, etc, are not to be posted here, but I wanted to post something, so people would be aware of the issue. If you've got unintended ads being served up on your site, and if you can't find anything in the "prepend" or "append" fields, check in "banners" for coding in "htmlcache" that doesn't match what you'd intended. Eliz.
  11. I'd wanted to rename the Revive directory, while leaving it in the same location on the same server under the same domain name. I'm not sure what the change (noted in the quote above) in the "default.conf.php" file is meant to accomplish; I left this file unchanged, as it already contained my domain name. However, I did make the changes in the "domain_name.conf.php" file, which meant the following lines were adjusted in the highlighted ways: old: [webpath] admin="www.domain_name.com/old_name/www/admin" delivery="www.domain_name.com/old_name/www/delivery" deliverySSL="www.domain_name.com/old_name/www/delivery" images="www.domain_name.com/old_name/www/images" imagesSSL="www.domain_name.com/old_name/www/images" [store] mode=0 webDir="/home/account_name/public_html/old_name/www/images" new: [webpath] admin="www.domain_name.com/new_name/www/admin" delivery="www.domain_name.com/new_name/www/delivery" deliverySSL="www.domain_name.com/new_name/www/delivery" images="www.domain_name.com/new_name/www/images" imagesSSL="www.domain_name.com/new_name/www/images" [store] mode=0 webDir="/home/account_name/public_html/new_name/www/images" I can confirm that this appears to work. Ads have continued to be served on the pages, and statistics are being logged. Thank you! Eliz.
  12. I gave up and tried to do a clean install of Revive. It kept hanging in the second step, saying that it was detecting an "unknown version" of Revive. I finally went into the configuration file and, in the first section (labelled "[openads]"), replaced the "1" in the first line with a "0". That was enough to convince the installation script that it could proceed. I then had problems with the installation claiming it found partial plugins, and could not install functional versions. I could neither install good ones nore uninstall the "bad" ones. So I ended up importing "code only", at which point I was able to uninstall the existing plugins and install the "right" ones. I'm still working, but things seems to be moving in a helpful direction. I'd still like to know how to do a "destination URL" for Generic HTML ads, though.... Eliz.
  13. Some time ago, I tried to upgrade from OpenX 2.8.something(?) to Revive, and the installation failed. I thought it had been okay, but nothing was being logged. I couldn't figure out how to fix it, so I rolled back to the backed-up OpenX installation. Now I'm trying again to install/upgrade, but I'm stuck at the "- An unknown version detected" error. The "debug.log" file is empty. The "install.log" file contains the following: Attempting to detect an existing Openads (aka. phpAdsNew) installation... PAN not detected Attempting to detect an existing Openads (aka. Max Media Manager 0.1) installation... MMM v0.1 not detected Attempting to detect an existing Openads (aka. Max Media Manager 0.3) installation... MMM v0.3 not detected Attempting to detect an existing Revive Adserver installation... creating upgrade_action audit table successfully created upgrade_action audit table creating database_action audit table successfully created database_action audit table An unknown version detected #! Connected to the database ok : purple04_revive310 #! This version cannot be upgraded Is there some key or value that I should be changing in the existing mySQL database to inform the upgrade/install script of the previous version? Or is there some other fix? Thank you. Eliz.
  14. I re-re-re-copied yet-more OpenX (known-good) files into the Revive installation, and finally I'm not getting errors in the Revive dashboard or the debug.log file. I've renamed the directories again. But I accidentally renamed wrong, so my old installation is gone. Crap. Eliz.
  15. I copied and uploaded the old (OpenX) version of "www.example.com_mergedDeliveryFunctions.php". The error messages across the top of every page in the dashboard are now gone, but I'm still having problems with the plugins. The debug.log file now reads as follows: Dec 31 15:18:35 -0500 OX-52c3269b706d4 [ error] OX_Plugin_ComponentGroupManager-&gt;diagnoseComponentGroup: Task failed _verifyDataObjects on line 111 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 124 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1556 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 243 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1099 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin/PluginManager.php" on line 140 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Extension /ExtensionCommon.php" on line 50 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 15:18:35 -0500 OX-52c3269b706d4 [ error] OX_Plugin_ComponentGroupManager-&gt;diagnoseComponentGroup: Task failed _verifyDataObjects on line 111 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 124 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1556 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 243 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1099 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin/PluginManager.php" on line 140 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Extension /ExtensionCommon.php" on line 50 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 15:18:36 -0500 OX-52c3269b706d4 [ error] OX_Plugin_ComponentGroupManager-&gt;diagnoseComponentGroup: Task failed _verifyDataObjects on line 111 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 124 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1556 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 243 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1099 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin/PluginManager.php" on line 140 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Extension /ExtensionCommon.php" on line 50 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php"The lines of code, in order as above, are: ComponentGroupManager line 111 (109-112): function _logMessage($msg, $err=PEAR_LOG_INFO) { OA::debug($msg, $err); } ComponentGroupManager line 124 (120-126): function _logError($msg) { if (!empty($msg)) { $this->aErrors[] = $msg; $this->_logMessage($msg, PEAR_LOG_ERR); } } ComponentGroupManager line 1556 (1554-1556): if (!$result) { $this->_logError('Task failed '.$aTask['method']); ComponentGroupManager line 243 (239-243): public function diagnoseComponentGroup(&$aGroup) { $aTaskList = $this->getDiagnosticTasks($aGroup); return $this->_runTasks($aGroup['name'], $aTaskList, array(), true); PluginManager line 1099: $this->diagnoseComponentGroup($aPlugin); ExtensionCommon line 140 (130-140): foreach ($aPlugins AS $name => $enabled) { $aPlugin = $oPluginManager->getPackageDiagnostics($name, true); maintenance-plugins line 50 (48-50): require_once(LIB_PATH.'/Extension/ExtensionCommon.php'); $oExtensionManager = new OX_Extension_Common(); $aPlugins = $oExtensionManager->getPluginsDiagnostics();Clearly, the problem is something to do with plugins, but I'm danged if I can figure out what else needs to be replaced. I'll stare at this for a while longer... Eliz.
  16. To answer your question (which crossed with my previous post, I think): Yes, the old install works just fine. I renamed the folders again, so ads are serving from the old database and the old installation. Also, I did an "export" of the plugins from the old installation, unzipped on my local machine, and uploaded. Most of the plugs now report being okay; the only errors are these: openXDeliveryLog 1.0.10 enabled Errors openXMarket 1.9.1-RC5 disabled Errors openXVideoAds 1.8.7 enabled Errors oxDeliveryDataPrepare: Task failed _verifyDataObjects oxMarket: Task failed _verifyDataObjects vastInlineBannerTypeHtml: Task failed _verifyDataObjects After running "plugin report", the debug.log file reads as: Dec 31 10:33:20 -0500 OX-52c2e3c06975d [ warning] Cannot modify header information - headers already sent by (output started at /home/account_name/public_html/adserver_folder_new/var/cache /www.example.com_mergedDeliveryFunctions.php:216) on line 109 of "/home/account_name/public_html/adserver_folder_new/lib/max/ErrorHandler.php" on line 298 of "/home/account_name/public_html/adserver_folder_new/lib/OA/Admin/UI.php" on line 153 of "/home/account_name/public_html/adserver_folder_new/www/admin/lib-gui.inc.php" on line 27 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 10:33:20 -0500 OX-52c2e3c06975d [ error] OX_Plugin_ComponentGroupManager ->diagnoseComponentGroup: Task failed _verifyDataObjects on line 111 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 124 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1556 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 243 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1099 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin/PluginManager.php" on line 140 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Extension /ExtensionCommon.php" on line 50 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 10:33:20 -0500 OX-52c2e3c06975d [ error] OX_Plugin_ComponentGroupManager ->diagnoseComponentGroup: Task failed _verifyDataObjects on line 111 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 124 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1556 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 243 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1099 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin/PluginManager.php" on line 140 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Extension /ExtensionCommon.php" on line 50 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 10:33:21 -0500 OX-52c2e3c06975d [ error] OX_Plugin_ComponentGroupManager ->diagnoseComponentGroup: Task failed _verifyDataObjects on line 111 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 124 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1556 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 243 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin /ComponentGroupManager.php" on line 1099 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Plugin/PluginManager.php" on line 140 of "/home/account_name/public_html/adserver_folder_new/lib/OX/Extension /ExtensionCommon.php" on line 50 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 10:33:21 -0500 OX-52c2e3c06975d [ warning] OA_Admin_UI->showFooter: Cannot modify header information - headers already sent by (output started at /home/account_name/public_html/adserver_folder_new/var/cache /www.example.com_mergedDeliveryFunctions.php:216) on line 109 of "/home/account_name/public_html/adserver_folder_new/lib/max/ErrorHandler.php" on line 678 of "/home/account_name/public_html/adserver_folder_new/lib/OA/Admin/UI.php" on line 164 of "/home/account_name/public_html/adserver_folder_new/www/admin/lib-gui.inc.php" on line 142 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php" Dec 31 10:33:21 -0500 OX-52c2e3c06975d [ warning] OA_Admin_UI-&gt;showFooter: Cannot modify header information - headers already sent by (output started at /home/account_name/public_html/adserver_folder_new/var/cache /www.example.com_mergedDeliveryFunctions.php:216) on line 109 of "/home/account_name/public_html/adserver_folder_new/lib/max/ErrorHandler.php" on line 678 of "/home/account_name/public_html/adserver_folder_new/lib/OA/Admin/UI.php" on line 164 of "/home/account_name/public_html/adserver_folder_new/www/admin/lib-gui.inc.php" on line 142 of "/home/account_name/public_html/adserver_folder_new/www/admin/maintenance-plugins.php"I've anonymised the domain as "example.com". The above reflects the fact that I'm trying to fix the Revive installation (renamed to "_new") while leaving the OpenX installation actively serving the ads for the time being. I think I'd followed instructions for the upgrade okay, in that the dashboard showed no apparent errors, the server was happy, and ads were displaying. It's just that the stats aren't updating, and apparently something is wrong with the old plugins I've never used. Which instructions, specifically, are you referencing from the page at the link? Thank you. Eliz.
  17. All the plugins show as "enabled". However, in the Revive dashboard, there are no "details" for this plugin (at the specified URL); there were "details" in the OpenX dashboard: oxHtml 1.0.1 Monique Szpak bannerTypeHtml oxText 1.0.1 Monique Szpak bannerTypeText I know. This is why I'm not understanding why something that isn't included and that I don't use must be installed, correctly or otherwise. Oh, well. I will try this now...
  18. After getting various errors, I downloaded everything from the old (OpenX) "plugins/etc/" folder to my local machine, and then uploaded to the new (Revive) "plugins/etc/" folder. Now every page in the dashboard displays errors across the top of the page (and in various other spots) that look like this: MAX_Dal_Delivery_Include(); function Plugin_deliveryLog_oxLogConversion_logConversion_Delivery_logConversion($trackerId, $serverRawIp, $aConversion, $okToLog = true) { if (!$okToLog) { return false; } OA_Dal_Delivery_connect('rawDatabase'); $table = $GLOBALS['_MAX']['CONF']['table']['prefix'] . 'data_bkt_a'; if (empty($GLOBALS['_MAX']['NOW'])) { $GLOBALS['_MAX']['NOW'] = time(); } $time = $GLOBALS['_MAX']['NOW']; $aValues = array( 'server_ip' => $serverRawIp, 'tracker_id' => $trackerId, 'date_time' => gmdate('Y-m-d H:i:s', $time), 'action_date_time' => gmdate('Y-m-d H:i:s', $aConversion['dt']), 'creative_id' => $aConversion['cid'], 'zone_id' => $aConversion['zid'], 'ip_address' => $_SERVER['REMOTE_ADDR'], 'action' => $aConversion['action_type'], 'window' => $aConversion['window'], 'status' => $aConversion['status'] ); $aFields = array_map('OX_escapeIdentifier', array_keys($aValues)); $aValues = array_map('OX_escapeString', $aValues); $query = " INSERT INTO {$table} (" . implode(', ', $aFields) . ") VALUES ('" . implode("', '", $aValues) . "') "; $result = OA_Dal_Delivery_query($query, 'rawDatabase'); if (!$result) { return false; } $aResult = array( 'server_conv_id' => OA_Dal_Delivery_insertId('rawDatabase', $table, 'server_conv_id'), 'server_raw_ip' => $serverRawIp ); return $aResult; } ?> MAX_Dal_Delivery_Include(); function Plugin_deliveryLog_oxLogConversion_logConversionVariable_Delivery_logConversionVariable($aVariables, $trackerId, $serverConvId, $serverRawIp, $okToLog=true) { if (!$okToLog) { return false; } OA_Dal_Delivery_connect('rawDatabase'); $table = $GLOBALS['_MAX']['CONF']['table']['prefix'] . 'data_bkt_a_var'; if (empty($GLOBALS['_MAX']['NOW'])) { $GLOBALS['_MAX']['NOW'] = time(); } $time = $GLOBALS['_MAX']['NOW']; $aRows = array(); foreach ($aVariables as $aVariable) { $aRows[] = "( '{$serverConvId}', '{$serverRawIp}', '{$aVariable['variable_id']}', '".OX_escapeString($aVariable['value'])."', '".gmdate('Y-m-d H:i:s', $time)."' )"; } if (empty($aRows)) { return; } $query = " INSERT INTO {$table} ( server_conv_id, server_ip, tracker_variable_id, value, date_time ) VALUES " . implode(',', $aRows); return OA_Dal_Delivery_query($query, 'rawDatabase'); } ?> function Plugin_deliveryLog_OxLogImpression_LogImpression_Delivery_logImpression($adId = 0, $zoneId = 0, $okToLog = true) { if (!$okToLog) { return false; } $aData = $GLOBALS['_MAX']['deliveryData']; $aQuery = array( 'interval_start' => $aData['interval_start'], 'creative_id' => $aData['creative_id'], 'zone_id' => $aData['zone_id'] ); return OX_bucket_updateTable('data_bkt_m', $aQuery); } function Plugin_deliveryLog_oxLogRequest_logRequest_Delivery_logRequest($adId = 0, $zoneId = 0, $aAd = array(), $okToLog = true) { if (!$okToLog) { return false; } $aData = $GLOBALS['_MAX']['deliveryData']; $aQuery = array( 'interval_start' => $aData['interval_start'], 'creative_id' => $aData['creative_id'], 'zone_id' => $aData['zone_id'] ); return OX_bucket_updateTable('data_bkt_r', $aQuery); } ?>
  19. I have verified that my server is returning no errors of the "500 Server Error" type. But-- I just went into the dashboard as "Administrator", clicked the "Configuration" tab, selected the "Maintenance" button from the left-hand side-bar, and chose "Plugins" in the "Choose selection" drop-down menu. Upon clicking "Plugin Report", all the plugins report as "enabled" but with "Errors", as follows: oxHtml: is configured as installed but not found to exist oxText: is configured as installed but not found to exist Client: is configured as installed but not found to exist Geo: is configured as installed but not found to exist Site: is configured as installed but not found to exist Time: is configured as installed but not found to exist ox3rdPartyServers: is configured as installed but not found to exist oxReportsStandard: is configured as installed but not found to exist oxReportsAdmin: is configured as installed but not found to exist oxCacheFile: is configured as installed but not found to exist oxMemcached: is configured as installed but not found to exist oxMaxMindGeoIP: is configured as installed but not found to exist oxInvocationTags: is configured as installed but not found to exist oxDeliveryDataPrepare: is configured as installed but not found to exist oxLogClick: is configured as installed but not found to exist oxLogConversion: is configured as installed but not found to exist oxLogImpression: is configured as installed but not found to exist oxLogRequest: is configured as installed but not found to exist oxMarket: is configured as installed but not found to exist oxMarketMaintenance: is configured as installed but not found to exist oxMarketDelivery: is configured as installed but not found to exist openXWorkflow: is configured as installed but not found to exist vastInlineBannerTypeHtml: is configured as installed but not found to exist vastOverlayBannerTypeHtml: is configured as installed but not found to exist oxLogVast: is configured as installed but not found to exist vastServeVideoPlayer: is configured as installed but not found to exist videoReport: is configured as installed but not found to exist So clearly I've done something wrong, but I have no idea what. Suggestions? Thank you. Eliz.
  20. No; I renamed the Revive "adserver_folder_new" directory to "adserver_folder" (renaming the old OpenX "adserver_folder" to "adserver_folder_old"). New info: When I try to view some of the banners (within the Revive dashboard), I get a blank space followed by a yellow-boxed error message: This banner is read-only because an extension has been disabled. Contact your Administrator for more information.What "extension" could be meant here? Note: The problemmatic ads are being served from remote sources, such as Google's AdSense. Banners stored locally display fine in the dashboard. Which settings should be "verified"? How? (There is no reference to "adserver_folder_new" in the configuration file, which is as it should be: the active folder is always "adserver_folder", without the "_new" or "_old" extension.) Thank you. Eliz.
  21. The previous error message may have been an issue of the renaming: maybe I caught the files at a bad time. Maintenance just ran again, and there are no new lines in the error.log file. But there are also no stats being logged. Ideas? Thank you. Eliz.
  22. Maintenance has now run twice, with no impressions having been logged. (I visited some pages on my site, so I know that there were at least a few impressions.) The error log contained the following: Dec 31 06:28:27 -0500 OX-52c2aa5b477b4 [ error] Failed to find package definition file /home/account_name/public_html/adserver_folder_new/plugins/etc/openXBannerTypes.xml on line 72 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance.php" on line 62 of "/home/account_name/public_html/adserver_folder/lib/OA/Maintenance/Auto.php" on line 3222 of "/home/account_name/public_html/adserver_folder/www/delivery/lg.php" on line 82 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance.php" on line 62 of "/home/account_name/public_html/adserver_folder/lib/OA/Maintenance/Auto.php" on line 3222 of "/home/account_name/public_html/adserver_folder/www/delivery/lg.php" As mentioned previously, I've renamed the directories, so the old OpenX installation is now "adserver_folder_old", and the new Revive installation, which was "adserver_folder_new" is now just "adserver_folder". I have no idea why the new installation is looking for a file under the old directory name. I'll poke around and see what I can find on those various lines....
  23. I had thought that the plugins were no longer necessary? I have located the XML files in the detritus of a very old install, and have uploaded them to the server. I've renamed the folders again to activate the Revive installation, and have set the cron job to run maintenance in the next few minutes....
  24. I'd thought my upgrade from OpenX to Revive had gone through successfully, but I see how that it hadn't. While ads are being served, no impressions are being logged (though the cron-job for maintenance is running hourly). The error log in the "var" folder contains loads of errors, all of the type "Failed to find package definition file" all in reference to the old OpenX "plugins" directory. When I set logging to include line numbers, the following sorts of lines were referenced for each "plugins" problem file: on line 72 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance.php" on line 62 of "/home/account_name/public_html/adserver_folder/lib/OA/Maintenance/Auto.php" on line 3222 of "/home/account_name/public_html/adserver_folder/www/delivery/lg.php" on line 82 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance.php" on line 62 of "/home/account_name/public_html/adserver_folder/lib/OA/Maintenance/Auto.php" on line 3222 of "/home/account_name/public_html/adserver_folder/www/delivery/lg.php" on line 96 of "/home/account_name/public_html/adserver_folder/lib/OX/Plugin/ComponentGroupManager.php" on line 109 of "/home/account_name/public_html/adserver_folder/lib/OX/Plugin/ComponentGroupManager.php" on line 900 of "/home/account_name/public_html/adserver_folder/lib/OX/Plugin/PluginManager.php" on line 998 of "/home/account_name/public_html/adserver_folder/lib/OX/Plugin/PluginManager.php" on line 983 of "/home/account_name/public_html/adserver_folder/lib/OX/Plugin/PluginManager.php" on line 54 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance/Statistics/Task/SummariseIntermediate.php" on line 174 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance/Statistics.php" on line 140 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance.php" on line 105 of "/home/account_name/public_html/adserver_folder/lib/OX/Maintenance.php" ...where "account_name" is the hosting-provider's name for the directory holding my domain, and "adserver_folder" is the directory containing the Revive installation. Yes, the same line may be referenced more than once for a given error. I have tried switching back to my old installation folder (containing the OpenX installation) by renaming the folders. The ads still serve, but logging isn't working on the old installation now, either. Update: After running the cron-job a few more times (??), the logging has resumed on the old OpenX installation. But I'd still like to upgrade, so this is only a stop-gap. Also, when I tried to check the invocation code under the new Revive installation, the software returned error coding: MESSAGE: ksort() expects parameter 1 to be array, null given TYPE: Warning FILE: /home/account_name/public_html/adserver_folder/lib/max/Admin/Invocation.php LINE: 290 DEBUG INFO: 285 'name' => $invocationTag->getName() 286 ); 287 } 288 } 289 290 ksort($aOrderedComponents); 291 foreach ($aOrderedComponents as $order => $aComponent) { 292 $allowed[$aComponent['pluginKey']] = $aComponent['isAllowed']; 293 } 294 295 if (!isset($this->codetype) || $allowed[$this->codetype] == false) { MESSAGE: Invalid argument supplied for foreach() TYPE: Warning FILE: /home/account_name/public_html/adserver_folder/lib/max/Admin/Invocation.php LINE: 291 DEBUG INFO: 286 ); 287 } 288 } 289 290 ksort($aOrderedComponents); 291 foreach ($aOrderedComponents as $order => $aComponent) { 292 $allowed[$aComponent['pluginKey']] = $aComponent['isAllowed']; 293 } 294 295 if (!isset($this->codetype) || $allowed[$this->codetype] == false) { 296 foreach ($allowed as $codetype => $isAllowed) { MESSAGE: Invalid argument supplied for foreach() TYPE: Warning FILE: /home/account_name/public_html/adserver_folder/lib/max/Admin/Invocation.php LINE: 315 DEBUG INFO: 310 311 $buffer .= ""; 312 $buffer .= "codetype == $pluginKey ? ' selected' : '').">".$invocationTagName." (The coding above has been anonymised in the manner explained earlier.) The old (OpenX) installation still displays the invocation coding correctly. Advice? Thank you. Eliz.
×
×
  • Create New...