HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

AmbientWeather

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#78464 (In Topic #16058)
Avatar

Fan in action

AmbientWeather

Has any body got AmbientWeather pages to work with ocPortal if how?
Back to the top
 
Posted
Rating:
#78473
Avatar

Fan in action

if I save to /site/pages/html_custom/EN
get this:
Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.
File '/home/public_html/sources/failure.php'
Line '674'
Function 'get_html_trace'
Args  

 
File '/home/public_html/sources/global2.php'
Line '969'
Function '_fatal_exit'
Args 'PHP NOTICE [8] Undefined variable: zone in sources/site_html_pages.php on line 71'

 
File '/home/public_html/sources/failure.php'
Line '214'
Function 'fatal_exit'
Args 'PHP NOTICE [8] Undefined variable: zone in sources/site_html_pages.php on line 71'

 
File '/home/public_html/sources/global2.php'
Line '843'
Function '_ocportal_error_handler'
Args 'notice'

8

'Undefined variable: zone'

'sources/site_html_pages.php'

71


 
File '/home/public_html/sources/site_html_pages.php'
Line '71'
Function 'ocportal_error_handler'
Args ...

 
File '/home/public_html/sources/site.php'
Line '999'
Function 'load_html_page'
Args 'site/pages/html_custom/EN/wx.htm'

 
File '/home/public_html/sources/site.php'
Line '753'
Function 'request_page'
Args 'wx'

true


 
File '/home/public_html/index.php'
Line '114'
Function 'do_site'
Args  

//
Back to the top
 
Posted
Rating:
#78476
Avatar

ocStaff (admin)

That's a definite bug. Please change .html to .htm in the filename, that'll fix the bug (I know it's strange, our code is wrong).



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78477
Avatar

Fan in action

allready is  wx.htm
Back to the top
 
Posted
Rating:
#78480
Avatar

ocStaff (admin)

Please attach a zipped copy of the file.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78482
Avatar

Fan in action

Attachment
» Download: wx.zip (1.93 Kb, 9 downloads so far)

as requested
Back to the top
 
Posted
Rating:
#78514
Avatar

ocStaff (admin)

Thanks. I did correct the bug ok, but I'd mischaracterised it. The fix is needed…

Attachment
sources/site_html_pages.php
» Download: site_html_pages.php (4 Kb, 14 downloads so far)



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78517
Avatar

Fan in action

Thanks that worked is there any easy way to fix 404 Not Found - W1NGL

this file is made ever 5 min.
Back to the top
 
Posted
Rating:
#78533
Avatar

ocStaff (admin)

Yes. And it will now search in the html_custom/EN folder, as well as uploads/website_specific.

Attachment
sources/site_html_pages.php
» Download: site_html_pages.php (4 Kb, 14 downloads so far)



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78556
Avatar

Fan in action

Looks at the like the images are remote of my server see like above link.
it has a url and then add my url
Back to the top
 
Posted
Rating:
#78562
Avatar

ocStaff (admin)

Yes, and my fix worked too :). If you look again now it's a different issue.

I thought this might happen, so I should have explained. There's a pages/html_custom/EN/.htaccess file that blocks direct access to the files in there.
It's a security feature to prevent people bypassing ocPortal page permissions by manually going to the HTML URLs.
Normally you're supposed to put the images in uploads/website_specific but I think seeing as this is auto-generated you probably can't do that easily.

Try changing the contents of the .htaccess file to:

Code

<FilesMatch !"\.(htm|html)$">
order deny,allow
deny from all
</FilesMatch>



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78567
Avatar

Fan in action

.haccess did not help you are correct getting:

Forbidden

You don't have permission to access /site/pages/html_custom/EN/broadcast.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Back to the top
 
Posted
Rating:
#78570
Avatar

ocStaff (admin)

Whoops, delete pages/.htaccess and pages/html_custom/.htaccess. Those aren't needed anyway.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78571
Avatar

Fan in action

Same
Back to the top
 
Posted
Rating:
#78572
Avatar

ocStaff (admin)

Sorry I'm making a mess of my explanations and detail…

delete site/pages/.htaccess and site/pages/html_custom/.htaccess



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#78611
Avatar

Fan in action

Files removed and still same
Back to the top
 
Posted
Rating:
#78612
Avatar

ocStaff (admin)

Did you change the site/pages/html_custom/EN/.htaccess file? I said pages/html_custom/EN/.htaccess originally by mistake.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: