- OpenX Community Forums
![]() ![]() |
Feb 8 2009, 06:23 PM
Post
#1
|
|
|
Beginner ![]() Group: Members Posts: 5 Joined: 14-January 09 Member No.: 25,193 |
I have a strange problem.
I was using my wordpress installation and openx on the same server. Everything was fine. Then I changed my domain and hosting. So on the new domain, I decided to use subdomain for my openx installation. I have my wordpress installation on a domain. http://www.xxxxx.com And I have my openx installation on the subdomain of that domain like http://ads.xxxxx.com When I use the plugin with the delivery URL (ads.xxxxx.com/www/delivery), it's working. But when I try to implement the invocationcode to my wordpress them codes, it's not working. Nothing is shown. What could be the reasons? |
|
|
|
Feb 8 2009, 07:50 PM
Post
#2
|
|
|
Mentor ![]() Group: OpenX Translators Posts: 3,168 Joined: 18-November 06 From: Germany/Sauensiek Member No.: 13,921 |
Hm, I sure you have changed the domain of the adserver in the openx-wordpress plugin settings to match the new 2nd level domain?
Heiko |
|
|
|
Feb 10 2009, 11:49 AM
Post
#3
|
|
|
Beginner ![]() Group: Members Posts: 5 Joined: 14-January 09 Member No.: 25,193 |
Yes,
Plugin works. I did change its settings to the new domain. That's why I think it's working. But the invocation code that I put into my theme is not working. That's what I don't understand? Hm, I sure you have changed the domain of the adserver in the openx-wordpress plugin settings to match the new 2nd level domain?
Heiko |
|
|
|
Feb 11 2009, 04:52 PM
Post
#4
|
|
|
Mentor ![]() Group: OpenX Translators Posts: 3,168 Joined: 18-November 06 From: Germany/Sauensiek Member No.: 13,921 |
Have you verified that you pasted the code into the correct place ? Inside / outside a PHP-Section ?
Heiko |
|
|
|
Feb 12 2009, 02:08 PM
Post
#5
|
|
|
Beginner ![]() Group: Members Posts: 5 Joined: 14-January 09 Member No.: 25,193 |
Well, I used the same theme in another domain.
The code was in the same place, and it was working. I am wondering if it's because of openx is installed on a subdomain. Do you think should I make changes on the URL? Here is the code: <?php //<!--/* OpenX Local Mode Tag v2.6.4 */--> define('MAX_PATH', '/var/www/vhosts/pldturkiye.com/subdomains/reklam/httpdocs'); if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } $phpAds_raw = view_local('', 2, 0, 0, '', '', '0', $phpAds_context, ''); } echo $phpAds_raw['html']; ?> Have you verified that you pasted the code into the correct place ? Inside / outside a PHP-Section ?
Heiko |
|
|
|
Feb 13 2009, 09:29 AM
Post
#6
|
|
|
Beginner ![]() Group: Members Posts: 5 Joined: 14-January 09 Member No.: 25,193 |
I solved the problem.
"Local tag" invocationcode isn't working. But "Javascript tag" invocationcode is working. Now, I can show my banners. But why local tag code isn't working? What could be the reason for that? Any idea? Well, I used the same theme in another domain.
The code was in the same place, and it was working. I am wondering if it's because of openx is installed on a subdomain. Do you think should I make changes on the URL? Here is the code: <?php //<!--/* OpenX Local Mode Tag v2.6.4 */--> define('MAX_PATH', '/var/www/vhosts/pldturkiye.com/subdomains/reklam/httpdocs'); if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } $phpAds_raw = view_local('', 2, 0, 0, '', '', '0', $phpAds_context, ''); } echo $phpAds_raw['html']; ?> Have you verified that you pasted the code into the correct place ? Inside / outside a PHP-Section ? Heiko |
|
|
|
Feb 13 2009, 10:49 AM
Post
#7
|
|
|
Mentor ![]() Group: OpenX Translators Posts: 3,168 Joined: 18-November 06 From: Germany/Sauensiek Member No.: 13,921 |
local-mode invocation works only if webserver and adserver reside on the same physical machine, is that true for your config ?
Heiko |
|
|
|
Mar 1 2009, 01:45 AM
Post
#8
|
|
|
Beginner ![]() Group: Members Posts: 4 Joined: 25-February 09 Member No.: 26,216 |
I didn't want to create a new topic since I have exactly the same problem.
WordPress on domain.com, OpenX on openx.domain.com -- both are on the same server. JavaScript tag works like a charm, but local mode doesn't. Any ideas? |
|
|
|
Mar 2 2009, 10:53 PM
Post
#9
|
|
|
Mentor ![]() Group: OpenX Translators Posts: 3,168 Joined: 18-November 06 From: Germany/Sauensiek Member No.: 13,921 |
Path to openx in include are fine ? Any errors messages when using local-mode ?
Heiko |
|
|
|
Mar 2 2009, 10:57 PM
Post
#10
|
|
|
Beginner ![]() Group: Members Posts: 4 Joined: 25-February 09 Member No.: 26,216 |
|
|
|
|
May 28 2010, 01:34 PM
Post
#11
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 46 Joined: 19-October 08 Member No.: 23,754 |
check your site DNS record in cPanel / Plesk
Do you have A records for both domain.com and www.domain.com or is just for domain.com? You'll likely need to add an A record for openx.domain.com as well, unless you have *.domain.com as a wildcard A record (recommended with WordPressMU and probably needed when WordPress 3.0 rolls out next month). QUOTE define('MAX_PATH', '/var/www/vhosts/pldturkiye.com/subdomains/reklam/httpdocs'); if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) { these are not the full paths of your particular install, nor do they define that OpenX is in a subdomain rather than a sub-directory MAX_PATH should be to /var/www/vhosts/pldturkiye.com/subdomains/reklam/httpdocs/openx then it's irrelevant if you're using subdomain or subdirectory, but remember you can only use the local tag if OpenX is on the same physical host as your domain's site (big warning here if you're using cloud hosting - your folders could be scattered all over the cloud and only virtualised to look like a single drive space). |
|
|
|
![]() ![]() |