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.


Upgrade 9.0.26 - 9.0.29, a few minor issues

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#111518 (In Topic #22414)
TQ
Avatar

Honoured member

Hi

I've just got around to the above update and have come across a few issues.

Firstly, when I ran the upgrader.php I was not offered any FTP settings to configure, just the master password. I have not used FTP on the site within ocProtal since the site moved to the new server so this could be an issue specific to my installation. Subsequently it was necessary to the update the files directly onto the server.

web.config: This still presents a blank white screen if my site is accessed by either http or http://example.com even if I turn IIRF off. I have rolled back to the 9.0.26 version and all is well. I still have the HTTPS add-on installed, could the issue be related to that? If I explicitly use example.com/index.php the site is fine.

The closed site message was again rewritten back to the default message. Where is this stored (I'd like to copy back my modified message)? This has been happening for many version upgrades so is not new.

Now getting "An image code (bigicons/clubs) was referenced that does not exist" every time I edit an entry.

TQ


Last edit: by TQ
Back to the top
 
Posted
Rating:
#111549
Avatar

Firstly, when I ran the upgrader.php I was not offered any FTP settings to configure, just the master password. I have not used FTP on the site within ocProtal since the site moved to the new server so this could be an issue specific to my installation. Subsequently it was necessary to the update the files directly onto the server.

Right, we detect SuExec-like environments, and simplify things down if we find it.

The closed site message was again rewritten back to the default message. Where is this stored (I'd like to copy back my modified message)? This has been happening for many version upgrades so is not new.

It's the FU_CLOSED_FOR_UPGRADES language string in the upgrade.ini language file. You can just skip the close site step while upgrading if you like, doing it manually from the Admin Zone instead.

Now getting "An image code (bigicons/clubs) was referenced that does not exist" every time I edit an entry.

Looking at this now on your server.

web.config: This still presents a blank white screen if my site is accessed by either http or Example Domain even if I turn IIRF off. I have rolled back to the 9.0.26 version and all is well. I still have the HTTPS add-on installed, could the issue be related to that? If I explicitly use example.com/index.php the site is fine.

Looking at this now on your server.


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:
#111550
Avatar

Could you give the FTP user you set up for me write access to web.config please - or just write access to everything under the web root if you're okay with that.


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:
#111551
Avatar

Now getting "An image code (bigicons/clubs) was referenced that does not exist" every time I edit an entry.

Did you manually extract the tar? I think the sources/hooks/systems/addon_registry/ocf_clubs.php file came back via a manual extraction. It's always important to use the extractor within the upgrader.
I see you've since uninstalled this addon again and the issue has gone.
I considered whether there was an upgrader bug causing reextraction of files from non-installed addons but I couldn't reproduce a problem during my test.


I did my best without write access to reproduce a web.config problem. I put a web.config and a dummy index.php in _tests, and it seems to work: https://hamfiles.co.uk/_tests/pg/foo

So I think the problem may be something a little different, but I'm not sure what.


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:
#111553
TQ
Avatar

Honoured member

Hi Chris,

Chris Graham said

Did you manually extract the tar? I think the sources/hooks/systems/addon_registry/ocf_clubs.php file came back via a manual extraction. It's always important to use the extractor within the upgrader.
I see you've since uninstalled this addon again and the issue has gone.

Yes, I installed and un-installed the addon to remove the issue.

I couldn't install via the upgrader as I was not able to provide FTP info so I extracted the update manually which is exactly what you anticipated!

Chris Graham said

I did my best without write access to reproduce a web.config problem.

You now have Full access to the web root via FTP. If you feel there is a conflict with my IIRF you are welcome to turn it off via RewriteEngine OFF on the first line of the iirf.ini file (which I'm sure you knew already).

Chris Graham said

Right, we detect SuExec-like environments, and simplify things down if we find it.

OK, not being *nix savvy, is there anything I can do to make ocP aware of my FTP environment? I've never had this issue before ie. when using IIS6's FTP.

:offtopic: ... but I'll mention it anyway. I discovered your unslider addon recently and had a play with it. It worked exactly as expected on my test page and any other page that I put it on EXCEPT my home page which is where I'd like to use it. Is there any other addon that would conflict with it or is it likely to be something I've got going on there.

Rather than adding slides it add all of the pages (the correct size ie 100% x 300px) with right & bottom scroll bars and obviously no animation.

If you need more info I'll put it back and tell you what Firefox's inspector says.

Thanks for all your help.

TQ
Back to the top
 
Posted
Rating:
#111554
Avatar

I couldn't install via the upgrader as I was not able to provide FTP info so I extracted the update manually which is exactly what you anticipated!

I see. I think maybe my analysis was wrong. SuEXEC is detected by seeing if (OTTOMH) index.php is owned by the same user that the request is running as.
Your problem may just be the PHP FTP extension not installed (I've not checked though).

Will reply further later.


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:
#111555
TQ
Avatar

Honoured member

Chris Graham said

Your problem may just be the PHP FTP extension not installed (I've not checked though).
How embarrassing! I didn't realise that, as of php v7, it is NOT built-in on a M$ box.

Thanks for that, it's fine now.

TQ

Back to the top
 
Posted
Rating:
#111556
Avatar

You now have Full access to the web root via FTP. If you feel there is a conflict with my IIRF you are welcome to turn it off via RewriteEngine OFF on the first line of the iirf.ini file (which I'm sure you knew already).

Actually the latest web.config seemed okay to me when I tested it.

It worked exactly as expected on my test page and any other page that I put it on EXCEPT my home page which is where I'd like to use it. Is there any other addon that would conflict with it or is it likely to be something I've got going on there.

I think it's because you have a miniblock that loads a second instance of jquery.

In the miniblock code try doing…
require_javascript('javascript_jquery');
instead of putting out your own script tag.



Regarding FTP, if you assign full recursive access to whatever the IIS user is, it should be effectively equivalent to SuEXEC.


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:
#111557
TQ
Avatar

Honoured member

Hi Chris,

Chris said

I think it's because you have a miniblock that loads a second instance of jquery.
It was, as you said, a reference to jquery of my own making. Here's the thing, in the miniblock I had (I believed) commented out the reference to jquery with \\. I removed the commented line and the jquery2.2.0.js stilled showed up in the Firefox debugger. I renamed the .js file and all is well.

The question is:

  • Is the reference to jquery still loaded with \\ type commenting
  • Does ocP see the jquery2.2.0.js in the miniblock folder and load it (if it does I'm going to have to make more effort to clean-up after my experiments)
  • Did I get into a mess with cached data
Re: web.config, I'm now wondering if I have misdirected you due to caching problems. I will look into this further and apologise now for taking up your time.

TQ
Back to the top
 
Posted
Rating:
#111558
Avatar

// is a comment in PHP not \\ :)

But in HTML it needs to be <!-- whatever -->


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:
#111559
TQ
Avatar

Honoured member

Sorry, I meant //, having a brain dead moment. So that was ok then.

Renaming the jquery…js looked to be the fix so I'm going to have to find what was referencing it. Dammed sure nothing is but I'll bet I'm wrong.

Feeling even more stupid now  :(

TQ
Back to the top
 
Posted
Rating:
#111607
TQ
Avatar

Honoured member

Chris Graham said

In the miniblock code try doing…
require_javascript('javascript_jquery');
instead of putting out your own script tag.
That hasn't worked for me, I'm getting server error 500 (in Firefox Inspector).

I worked around it at the time by putting http rather than https reference to my jquery file (in the miniblock folder) which works but is not ideal as it causes Firefox to indicate mixed content.

If I use HTTPS or just //url with the work around it stops unslider from working.

Do I need to provide any other information for require_javascript('javascript_jquery'); in my miniblock?

TQ
Back to the top
 
Posted
Rating:
#111608
Avatar

Oh, actually we don't ship that template as bundled, it's only in certain addons.

You can get the file here:

https://raw.githubusercontent.com/chrisgraham/ocPortal/v9/themes/default/templates_custom/JAVASCRIPT_JQUERY.tpl


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:
#111615
TQ
Avatar

Honoured member

Chris Graham said

Oh, actually we don't ship that template as bundled, it's only in certain addons.

You can get the file here:

https://raw.githubusercontent.com/chrisgraham/ocPortal/v9/themes/default/templates_custom/JAVASCRIPT_JQUERY.tpl

I already had the JAVASCRIPT_JQUERY.tpl in the default theme.

You forget Chris, I am not a programmer so everything I have learnt is the result of the sheer enjoyment and challenge of ocP and of course, the unprecedented advice and patience you've had with me.

I struggle with the on-line documentation because there is so much inter-related stuff to to build up a global perspective, but eventually found where I'd gone wrong.

The (so simple) solution was to add the run function which I'm including in this reply in case there is just one other person with as elementary knowledge about ocP as me and could benefit from it:

Code

    function run()
    {
    require_javascript('javascript_jquery');
    }

This adjustment means that my unslider now works as expected, my miniblock refreshes every x seconds and my page is no longer mixed content.

Thanks as always for your help.

TQ
BTW: I know from another thread that not so many people are interested but I would gladly pay 100 Euro for the printed documentation with examples despite the fact that it would have to be supplemented regularly.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: