Hello! PM2K here.
Im a real novice here. But i had a pretty sizable following as a cartoonist, and wanted to give the whole membership website a go. I stumbled upon OC portal in 2014. Over 6 years later and its done me real solid. I have really enjoyed the product/experience, even though i regret not educating myself more with the inner workings of the actual software integration, and updating to Composr when it came out. Everything was fine, but then about a month ago, my website just went down. All i could see was the installer.
Did some poking around, and as it turned out, my Web Hosting service updated me to PHP 7.4
And that didn't play well with my members section (OC portals software) so i got them to roll it back to a PHP where it would work. Somehow that number was 5.6.3
The site atleast appears the same as before, and looks to run fine except a few glitches;
For starters, i get this…
Deprecated: iconv_set_encoding() [ref.iconv.php]: Use of iconv.output_encoding is deprecated in /home1/martenas/public_html/sources/global2.php on line 2124
Deprecated: iconv_set_encoding() [ref.iconv.php]: Use of iconv.internal_encoding is deprecated in /home1/martenas/public_html/sources/global2.php on line 2125
…at the top of the screen.
Im also unable to do any sort of updating, content management, or site editing due to the fact that i get this error everytime i try to go in the admin zone:
PHP WARNING [2] Cannot modify header information - headers already sent by (output started at /home1/martenas/public_html/sources/global2.php:2124) in sources/site.php on line 208 (version: 9.0.11, PHP version: 5.6.30, URL: /adminzone/index.php?page=start&keep_no_swfupload=1&keep_session=241999584)
So im not sure if this has to do with the fact that the PHP is such a low number, or that it was changed a couple of times by a rep via my web hosting. Or just some other thing that i have missed.
Here is my website: http://otakusquid.info/index.php?keep_no_swfupload=1&
Be warned… my fans have a really weird eclectic taste in art and cartoons, and i sorta fall into the vein of crumb, bisley, and that dude who did ren & stimpy (post nickelodeon). Oh, and lots of anime squids.
Attached is a page that shows what PHP i am using, as well as what the page looks like when i get the error. If you need anything else, please let me know, as this site reliably gave me a decent chunk of income for me & the fam to live off of.
See if you can manually apply the changes there to sources/global2.php. Or if you're not sure, you could try replacing the whole file (but backup that file first!).
TBH This is pretty much a cautionary tale in not keeping up with patches or new releases. It's completely understandable, I've done the same myself with stuff I don't feel like upgrading. But the consequence is being seriously left in the dirt, things breaking and it getting much more complex to upgrade in the future.
First off, i want to say thank you for even responding to me, and for creating such a useful and wonderful product for free. I see what you are tying to do here, and i appreciate your dedication & entusiasm to your craft. Secondly, i do admit… i feel like the grasshopper in the story with the ants. You gave us warning of winter, and i just trotted along, not really preparing for winter. I did try and update the software when you said you'd release Composr. But i failed to back up my files (for some reason it wasn't working), and simply gave up.
I honestly almost gave up on doing art for a living, but many people wanted me to continue my lifes passion. This software helped me do just that. But i have neglected to learning how to code & didnt keep up with the times. So i am stuck with the poor decisions i have made.
Enough beating myself up though. So i tried entering the code you linked, and it doesn't seem to work for me. Though i could have done something completely wrong on my end (being the novice that i am). But i tried simply copying the code in green(omitting the lines in red), and it didn't take. So i took all the code from the link and put it in my global2.php file, and it gave me a blank page. So i uploaded my back up again, and i brought the site back to its current state (with no admin access due to PHP error)
Should i give it a go again? Something i did wrong? What are some other choice that i may possibly have? Is there anything i can do from the installer or updater screens? Can i revert back to a working state somehow? Or can i update to Composr from the updater page? Everything else works on the website fine. Just cant get into the admin screen without getting the aforementioned PHP errors.
I know you are a busy man. And i doubt you have much time. But as i ponder my options, including possibly using membership gimmicks from my webhosting… i just sorta feel that i would let go of so much potential i saw in the software to begin with.
Good news Chris!
Beleive it or not,i managend to figure this out. Atleast so i can get in there, do some backups, and update to Composr.
I dont know if this sounds like a bad idea, or just plain wrong…
But I simply deleted the lines of code in my file manager;
in /home1/martenas/public_html/sources/global2.php on line 2124
& in /home1/martenas/public_html/sources/global2.php on line 2125
Via The error code given at the top of the screen, and it worked! I could finally get into the admin area! Couldnt belive it!
Im not sure if that was wise, or if it will cause problems down the line, but atleast i was able to get into teh admin zone for now, and do some much needed backups. Now, i am looking into updating to Composr.
Thanks a bunch for your help Chris.
You are a proper gent!
I understand. I appreciate you even giving the time you have, and developing such a useful software. And being able to delve so deeply into your products for free; though i understand you offer actual consultation for payment, so i wont take any more of your time. But understand i do appreciate this.
One last question; should i, and am i in a decent position to simply upgrade to Composr at this point? or do i need to patch to be compatible with new PH first? Currently running ocPortal 9.0.11 on the inherit PHP setting.
Im a real novice here. But i had a pretty sizable following as a cartoonist, and wanted to give the whole membership website a go. I stumbled upon OC portal in 2014. Over 6 years later and its done me real solid. I have really enjoyed the product/experience, even though i regret not educating myself more with the inner workings of the actual software integration, and updating to Composr when it came out. Everything was fine, but then about a month ago, my website just went down. All i could see was the installer.
Did some poking around, and as it turned out, my Web Hosting service updated me to PHP 7.4
And that didn't play well with my members section (OC portals software) so i got them to roll it back to a PHP where it would work. Somehow that number was 5.6.3
The site atleast appears the same as before, and looks to run fine except a few glitches;
For starters, i get this…
Deprecated: iconv_set_encoding() [ref.iconv.php]: Use of iconv.output_encoding is deprecated in /home1/martenas/public_html/sources/global2.php on line 2124
Deprecated: iconv_set_encoding() [ref.iconv.php]: Use of iconv.internal_encoding is deprecated in /home1/martenas/public_html/sources/global2.php on line 2125
…at the top of the screen.
Im also unable to do any sort of updating, content management, or site editing due to the fact that i get this error everytime i try to go in the admin zone:
PHP WARNING [2] Cannot modify header information - headers already sent by (output started at /home1/martenas/public_html/sources/global2.php:2124) in sources/site.php on line 208 (version: 9.0.11, PHP version: 5.6.30, URL: /adminzone/index.php?page=start&keep_no_swfupload=1&keep_session=241999584)
So im not sure if this has to do with the fact that the PHP is such a low number, or that it was changed a couple of times by a rep via my web hosting. Or just some other thing that i have missed.
Here is my website: http://otakusquid.info/index.php?keep_no_swfupload=1&
Be warned… my fans have a really weird eclectic taste in art and cartoons, and i sorta fall into the vein of crumb, bisley, and that dude who did ren & stimpy (post nickelodeon). Oh, and lots of anime squids.
Attached is a page that shows what PHP i am using, as well as what the page looks like when i get the error. If you need anything else, please let me know, as this site reliably gave me a decent chunk of income for me & the fam to live off of.
Sincerely,PM2K
This is the code i get when i put in the new code you gave me into the global2.php file:
Fatal error: Call to undefined function safe_ini_set() in /home1/martenas/public_html/sources/global2.php on line 184
NVM! Problem solved!
This was the fix:
https://github.com/chrisgraham/ocPortal/commit/0151791078439505a4260b150e3e0795693bbe94#diff-251c3e6887dcd88ed73f4a46b97ef38207f816a047b9c742229413e5c0e51edc
See if you can manually apply the changes there to sources/global2.php. Or if you're not sure, you could try replacing the whole file (but backup that file first!).
TBH This is pretty much a cautionary tale in not keeping up with patches or new releases. It's completely understandable, I've done the same myself with stuff I don't feel like upgrading. But the consequence is being seriously left in the dirt, things breaking and it getting much more complex to upgrade in the future.
Secondly, i do admit… i feel like the grasshopper in the story with the ants. You gave us warning of winter, and i just trotted along, not really preparing for winter. I did try and update the software when you said you'd release Composr. But i failed to back up my files (for some reason it wasn't working), and simply gave up.
I honestly almost gave up on doing art for a living, but many people wanted me to continue my lifes passion. This software helped me do just that. But i have neglected to learning how to code & didnt keep up with the times. So i am stuck with the poor decisions i have made.
Enough beating myself up though.
So i tried entering the code you linked, and it doesn't seem to work for me. Though i could have done something completely wrong on my end (being the novice that i am). But i tried simply copying the code in green(omitting the lines in red), and it didn't take. So i took all the code from the link and put it in my global2.php file, and it gave me a blank page. So i uploaded my back up again, and i brought the site back to its current state (with no admin access due to PHP error)
Should i give it a go again? Something i did wrong?
What are some other choice that i may possibly have? Is there anything i can do from the installer or updater screens? Can i revert back to a working state somehow? Or can i update to Composr from the updater page? Everything else works on the website fine. Just cant get into the admin screen without getting the aforementioned PHP errors.
I know you are a busy man. And i doubt you have much time.
But as i ponder my options, including possibly using membership gimmicks from my webhosting… i just sorta feel that i would let go of so much potential i saw in the software to begin with.
So hoping you can help with that.
pm2k
Beleive it or not, i managend to figure this out. Atleast so i can get in there, do some backups, and update to Composr.
I dont know if this sounds like a bad idea, or just plain wrong…
But I simply deleted the lines of code in my file manager;
in /home1/martenas/public_html/sources/global2.php on line 2124
&
in /home1/martenas/public_html/sources/global2.php on line 2125
Via The error code given at the top of the screen, and it worked! I could finally get into the admin area! Couldnt belive it!
Im not sure if that was wise, or if it will cause problems down the line, but atleast i was able to get into teh admin zone for now, and do some much needed backups. Now, i am looking into updating to Composr.
You are a proper gent!
pm2k
The way the diff works is it shows lines in red to remove and lines in green to insert. But don't worry about that now that you have it working.
Wish I had more time to get in to detail with each individual user, but alas I don't.
One last question; should i, and am i in a decent position to simply upgrade to Composr at this point?
or do i need to patch to be compatible with new PH first?
Currently running ocPortal 9.0.11 on the inherit PHP setting.
Thanks Chris.
Upgrading from ocPortal v8/v9 to Composr v10
How to upgrade from ocPortal to Composr
View
There's a box near the top that mentions what to try for older Composr versions.
The omni-upgrader is linked in this article. This is a special upgrade file to upgrade ocPortal to Composr.
It does make me nervous, so definitely take a full backup before trying this.