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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


AmbientWeather

Login / Search

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

Well-settled

AmbientWeather

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

Well-settled

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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78477
Avatar

Well-settled

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

Please attach a zipped copy of the file.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78482
Avatar

Well-settled

Attachment
» Download: wx.zip (1.93 Kb)

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

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, 90 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78517
Avatar

Well-settled

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

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, 108 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78556
Avatar

Well-settled

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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78567
Avatar

Well-settled

.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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78571
Avatar

Well-settled

Same
Back to the top
 
Posted
Rating:
#78572
Avatar

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78611
Avatar

Well-settled

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

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: