Peculiar Error
-
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
I've followed your instructions as best I can and have done the following:
I created a phpcomic (not phcomics) dir in pnTemp, CHMOD to 755...still had problems so went back and CHMOD to 777...that made the directory work. Now the module attempts to display comic images but each image is broken. In each case the image itself is in the phpcomic dir and if accessed via file manager it displays without problems. I went to PostNuke settings and, as per instructions, made sure that I had "Allowed with attributes" thetag...it was OK so that isn't the problem. Each image is set to 644 and I don't appear to be allowed to CHMOD the permissions for individual images (probably a server issue)...is this why I'm unable to make the module work? As best I can see this ought not to be a reason for broken images of the comics. I'm at a loss to know what else to do...any ideas?
Many thanks in advance for your kind reply. -
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
-
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
If the image is in the pnTemp/phpcomic directory and you are able to view it, the hard part is working !!
This also tell us that permissions are ok because php was able to write the image file in the directory, so your problem is not a permission issue on your server.
The function named phpcomic_user_viewimage is used to display the image (can you verify in the source of your phpcomic page, you should seee something likeCode
<img src="module-phpcomic-viewimage-f-comicxx.jpg.html" width="www"
height="hhh" alt="name of comic" border="0" hspace="0" vspace="0">
, if you don't see that, tell me what you see, xx is the comic id, www and hhh are the image's dimensions)
the next step is to check if the viewimage function is working on your server, for that type in your browser address bar :
http://url_of_your_site/index.php?module=phpcomic&func=viewimage&f=comicxx.jpg
where xx is the name of a comic image that already exist in the pnTemp/phpcomic directory
(don't forget to substitute .gif to .jpg if necessary)
Tell me if you see the comic image or if the image is broken.
When I will have the result of your tests I will decide on further tests to solve the problem, but I am sure we will be able to find a solution and that it will help to make phpcomic more robust.
If your site is online please give me an url so that I can make some tests on my own. -
- Inscrit en : 03.04.05
- Dernière visite : 24.04.05
- Messages : 3
Thanks for replying:
Working from comic 59 (Meg)
Code
<img src="http://voxpopuli.websiteallies.com/index.php?module=phpcomic
&func=viewimage&f=comic59.gif" width="600" height="200" alt="Meg!"
border="0" hspace="0" vspace="0">
Obviously my site is http://voxpopuli.websiteallies.com/index.php
I'm using the above free site as a place to test things out prior to opening a "proper" site using the same systems.
Putting the above into general terms:
Code
<img src="MysiteURLmodule=phpcomic&func=viewimage&f=comicxx.gif"
width="www" height="hhh" alt="name of comic" border="0" hspace="0" vspace="0">
When I tried the URL form you gave above all I got was gibberish...e.g. GIF89aX¿...that came from trying comic 90 BTW. There was no image broken or otherwise.
The URL form you gave is noticeably different from my source in the element module=phpcomic&func=viewimage&f=comicxx.gif . I very glad you're willing to help with this as it has me bemused. Thanks again! -
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
I think I found the problem : before that gibberish there is an add from Google !! this completely destroy the image code. Can you prevent google to add it's code here because if not I think we have a serious problem. As I don't use Google advertising I don't know how it is done. The problem arise because the url of the image is itself the adress of a phpscript. -
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
I think the problem is in fact caused by the way you have integrated google adsense to your website. Can you explain me how it is done ? -
- Inscrit en : 03.04.05
- Dernière visite : 24.04.05
- Messages : 3
That is quite a problem. The site I'm using as a testbed is a free site with the host (not me) adding Google Adsense to gain enough revenue to pay for providing it. When I move to a commercial site that I pay to have hosted I can arrange the integration and placement of the Google Adsense but on this one I'm entirely at the mercy of my free host.
Presumably the Google Adsense would be less likely to provoke a problem if it were to be in a sidebar on the RHS thus loading after the middle section...I can certainly arrange to do it that way when I move off of my testbed site.
Sadly many website implementations of Google Adsense are rather badly done and I've seen quite a few difficulties caused by them.
I'm sorry to say that I can't give you any details of exactly how my host integrated the Google Adsense...I don't have these details. I may be able to get hold of the Google standard instructions on how to do it if that would be of assistance in helping others with similar problems to mine. -
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
Well this is not really a problem with Google adsense but a problem with the (atroucious) way this free site is including the Google adsense code in the page because when you invoque http://voxpopuli.websiteallies.com/index.php?module=phpcomic&func=viewimage&f=comic59.gif the php script is in fact returning an http document containing just an image (prefectly valid according to the http protocol) and I took the precaution to include the necessary header to show this is an image because I put :
Content-type: image/gif or Content-type: image/jpeg
in the header but that stupid site act as if my header wasn't there, including its code and reverting my document to Content-type: text/html so of course nothing but the ad is displayed.
So obviously phpcomic will not work on that site but it is not phpcomic fault !!!
In my opinion you will have no problem when you move to a "real" host because you will put Adsense code somewhere in your theme templates and of course it will not be included in the viewimage output because this function doesn't include any element of the theme, it just return the image.
But tha adsense ads will still be on the phpcomic page because the code will be included in the display output (not sure if the diffrence is clear for you between the display function that create the page and the viewimage function that create only the comic image ?)
So do nothing, plan the rest of your site and move it to another host and I am sure that phpcomic will work.
Utilisateurs en ligne
- 10 visiteurs
Données pour les 15 dernières minutes








