pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
957 stars 574 forks source link

Brakes up then 500 error after short period #649

Closed simon1967 closed 4 years ago

simon1967 commented 4 years ago

Ok I am say thanks first, Please be aware I am learning code slowly, I have spent a week reading various articles trying to help my self first. I am a patreon of ph7 cms . I am willing to pay for help as I love the software and the skill set that has been applied. I host with TMDhosting The site will run a couple of days perfect but then starts breaking up If i go to admin and clear the cache i can keep it going longer but then it will break up and read page not found but display as a text like page no background all text down the left had side then it will http 5000 error. I keep restoring and loosing my Data base this has been going on for a while, I have attached a screen shot of how it looks seconds before it falls over. Greatful for your help and support with this. also I will pay to have it running perfect if need be. Simon 11

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

pH-7 commented 4 years ago

However, when I go to the "Browse" link, it doesn't work well. Could you try to clear the static cache? Admin Panel -> Tool -> Caches -> Caches Manager -> Static Files.

simon1967 commented 4 years ago

I have just noticed that the host had it on php5.6 would this have done it please. Can i say thanks for your time Simon

On Thu, 10 Oct 2019 at 22:07, ♚ PH⑦ de Soria™♛ notifications@github.com wrote:

Hi @simon1967 https://github.com/simon1967 your issue seems similar to #284 (comment) https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/284#issuecomment-418615641

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6W62J4JKAJKDHST2KTQN6KSZA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA56QLY#issuecomment-540796975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6T7H4AM5J7RMK734R3QN6KSZANCNFSM4I7QX6QQ .

simon1967 commented 4 years ago

Ok i have cleared them now but i have to keep clearing them. The host has this set on php 5.6 extensions not php 7

On Thu, 10 Oct 2019 at 22:12, ♚ PH⑦ de Soria™♛ notifications@github.com wrote:

I have just checked your website and looks working well by now... [image: Screenshot 2019-10-11 at 10 09 51 am] https://user-images.githubusercontent.com/1325411/66606812-5ec2cc80-ec0f-11e9-992f-3d0552de2522.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6XGQRE4BFBPZBLZAMTQN6LD5A5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA57CIY#issuecomment-540799267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6URKVLFVKYTL5PQJ6LQN6LD5ANCNFSM4I7QX6QQ .

pH-7 commented 4 years ago

Really sorry, please ignore my previous answers (now, removed). I haven't read your entier message. Looks very weird it redirects to "index.php/..."

Were you able to see the error message behind the 500 error? Anything found in /_protected/dada/log/*

I would suggest you contact TMDhosting and see with them if there is nothing breaking it.

pH-7 commented 4 years ago

Ok i have cleared them now but i have to keep clearing them. The host has this set on php 5.6 extensions not php 7

Great news! What extension was it... (in order to know the cause)?

simon1967 commented 4 years ago

it was on 5.6 they are going to change it I found it my self . I am so grateful for your valued time and continue to support you. Do you think this was the problem cause ?

On Thu, 10 Oct 2019 at 22:24, ♚ PH⑦ de Soria™♛ notifications@github.com wrote:

extensions

Great news! What extension was it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6SRAVDEDEKUSXU5P7TQN6MSLA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6ASIQ#issuecomment-540805410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6UHGNHF2JDEMCAVQB3QN6MSLANCNFSM4I7QX6QQ .

simon1967 commented 4 years ago

No it did the same if i clear cache in admin it works . what is wrong I keep clearing it every 5 mins

Simon

On Thu, 10 Oct 2019 at 22:34, simon Boothman clubhouseuk@gmail.com wrote:

it was on 5.6 they are going to change it I found it my self . I am so grateful for your valued time and continue to support you. Do you think this was the problem cause ?

On Thu, 10 Oct 2019 at 22:24, ♚ PH⑦ de Soria™♛ notifications@github.com wrote:

extensions

Great news! What extension was it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6SRAVDEDEKUSXU5P7TQN6MSLA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6ASIQ#issuecomment-540805410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6UHGNHF2JDEMCAVQB3QN6MSLANCNFSM4I7QX6QQ .

simon1967 commented 4 years ago

I clear the cache and it remains the same , can anyone give me any ponters please. I host with TMD PHP7.2 on the server I have read now for a week or so many articles but found no resolve. Please can I say I am learning code slowly Also the sight will fall over and give error 500 after a while and TMD have to restore. I am asking as I am stuck and need some giudance I want to say I appreciate all help in this matter I am a patreon of this. Kindest Simon

Undefined-Variables commented 4 years ago

Have you cleared your browsers cache?

You can manually clear the cache by going to _protected/data/cache/ and delete the four folders here. You will likely have to do

chmod 777 -R /var/www/_protected/data/cache 

to allow you to delete them. To delete in terminal use

rm -R /var/www/_protected/data/cache/pH7_cache

Do this for each folder then load your website and the folders will be created automatically.

Hope that helps.

polynamaude commented 4 years ago

@simon1967 Why do you need to repeat yourself with the same question? The issues ARE MONITORED and you already got some base for answer. The script ain't meant for beginners and there's no use to shouting you're on Patreon like thousands. This just give me the feeling you are pushing for answers.

Thanks

simon1967 commented 4 years ago

polynamaude Thankyou for your comment, I understand but I have been looking at this for over a week, and after reading your comments to others " very similar to this one" i decided to read the articles of which I have, I could find no resolve and if you read I offered to pay for help. So I am not just walking away from this I am stcking with it and working the problem. Once you have the feeling you have exhausted all avenues you understand you then ask for help and thats where I feel I am Thanks Simon

Undefined-Variables commented 4 years ago

I have given you the answer... Why are you having so many issues with the cache? Are you making changes to the site? If so you should disable the cache until you are happy with everything.

simon1967 commented 4 years ago

Undefined I am just trying it now and will report back. I thansk you for your help I have made no changes to the site. Thanks Simon

polynamaude commented 4 years ago

@Undefined-Variables could you link your comment related to your own experience. About the fact we do so for free and there's no link between paying on Patreon and getting something back (at least from myself).

I think this guy forgot we ain't UpWork or that we work at over 100 euros per hours.

Undefined-Variables commented 4 years ago

@polynamaude Yes I am not afraid to admit I had a few issues with the cache myself but I learned a great deal from the time I spent working with the code.

Sorry I wasn't trying to step on your toes I am online doing some coursework and saw the question pop up in a gmail notification. How are you doing anyway?

simon1967 commented 4 years ago

Hi Guys, I would like to report Undefined-Variables was perfect, Thank you so much. This was obvious to you guy's but not to me. It is now Thanks for all your effort and imput into solving this I am learning as I said. Thanks Simon

Undefined-Variables commented 4 years ago

@simon1967 Glad i could help you! Oh and close the issue :)

simon1967 commented 4 years ago

@Undefined-Variables I hope to build my knowledge with help like yours it guides me and I now see why that was all it took. Bid thanks Can I be rude and ask is the cache likley to create me any more problems. Simon

Undefined-Variables commented 4 years ago

I can't answer that with any certainty. Hopefully not but if it does you know how to fix it now.

simon1967 commented 4 years ago

Oh dear it ran for 3 logins then did the same again any more ideas please

Undefined-Variables commented 4 years ago

When you say the same what do you mean? explain the problem a little more.

simon1967 commented 4 years ago

Hi thanks, At the top of this post I put a screen shot, I can log on perfect then when i go to anything else it appears as the screen shot at the top of this page. One big thanks

Undefined-Variables commented 4 years ago

Right do the same as before and clear the cache. Then login as admin and go to cache manager and disable every cache. Once you have disabled everything clear the cache again.

Now you can enable them one at a time and find out which is causing the problem.

simon1967 commented 4 years ago

Will do thanks I will report back Simon

Undefined-Variables commented 4 years ago

What browser are you using? I am on your site and have no problem.

polynamaude commented 4 years ago

@Undefined-Variables You don't step on anyone's toe. You are more than welcome to contribute with hints and knowledge.

simon1967 commented 4 years ago

Firefox and chrome 2 different machines

simon1967 commented 4 years ago

Ok i have 1 at a time dissabled 1 at a time and deleted cache each time just to make sure and there are no changes the page still breaks up thanks

Undefined-Variables commented 4 years ago

Disable them all (at the same time) Then clear the cache.

When you reload only one folder should be generated.

Then turn them on one at a time and login etc and try to recreate the problem. Its no good turning one off and having 3 on. That tells me nothing.

simon1967 commented 4 years ago

Ok thanks will do and report back

simon1967 commented 4 years ago

With all 4 dissabled it came up the same broken. I did as you said a deleted Cache first completely then dissabled all 4 and tried my first login this broke up instantly and appeared as the screen shot at the top of the page. I did clear my browser on 2 macines and try the same

Undefined-Variables commented 4 years ago

I don't think the problem is with the software. I think the problem is the way you have set your server up. I have just spent a few minutes looking over your site and I have to be honest with you by saying your server is not set up correctly. You don't have a SSL certificate, you have not thought of security and I can see some serious holes that I could take advantage of very easily. Your set up is not even checking for same-origin. Security is the most important thing. Read this, you should have all these in place. (except mod-security as the software handles this aspect already).

https://geekflare.com/apache-web-server-hardening-security/

There are things that you simply can not afford to mess up. Do you have access to a php.ini file? And what have you set up? Who are you hosting with? Do you have SSH access?

simon1967 commented 4 years ago

I am with TMD Hosting I will get ssl certificate now I did read this last week and it was on my list. I will sort SSL out now and I allowed TMD to install so i was working on the server would be ok as they came recomended with the software, "I assumed" that made a fool of me. Regarding Cache-Control = no-store, no-cache, must-revalidate should these be set to yes Thanks so much can I say thanks thanks your knowledge has been so gratefully recieved .

Undefined-Variables commented 4 years ago

I feel like I was harsh on you in that last reply but the truth is the internet is full of people who will take advantage of any weakness and they will do so without second thought. You can not expect users to join your service via unencrypted http.

The software provides its own cache so no leave them as no. setting them to public or even private opens up more problems with security.

I can't help you with your server set up as only you have the access, with the code its different as we all have a copy. My advice is to concentrate on setting your server up correctly before doing anything else.

Undefined-Variables commented 4 years ago

If all else fails pH-7 offers hosting services that are tailored to the software. This might be your best bet.

simon1967 commented 4 years ago

Ok i have just requested ssl and no you was not harsh. And how do i pick up that hosting please to eliminate this. I just took the top one from the recomended hosts with the software . If i new more about the server set up i would stay with TMD they have benn really good to me. Simon. Id there any fact sheets on the server set up for this software please. Oh and ONE BIG THANKS

Undefined-Variables commented 4 years ago

https://www.interserver.net/apps/ph7cms-hosting.html?gclid=EAIaIQobChMIx7j5mLqZ5QIVjq_ICh07IQ_SEAAYASAAEgK5CfD_BwE

Thats his hosting service and no there is no cheat sheet for setting up a server, it comes with experience and by learning from mistakes.

Best of luck.

simon1967 commented 4 years ago

Just to say you have been fantastic thanks so much. I will not take anymore of your time this has been amazing help. Well done and thanks for working through these problems with me" self created" it has been a great afternoon for me Thanks Simon

polynamaude commented 4 years ago

@simon1967 You have the requirements for the server in the pH7CMS documentation website and also in the Wiki.

Don't expect website development to be a top down approach with lists and flowchart of what to do.

Moat of it is based on experience and investigation.

simon1967 commented 4 years ago

Thanks I am learning and reading fast . I am grateful guys very. And thanks for your reply

Simon

On Sun, 13 Oct 2019 at 16:26, Polyna-Maude R.-Summerside < notifications@github.com> wrote:

@simon1967 https://github.com/simon1967 You have the requirements for the server in the pH7CMS documentation website and also in the Wiki.

Don't expect website development to be a top down approach with lists and flowchart of what to do.

Moat of it is based on experience and investigation.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6QCBEWNXB72PIDJCATQOM42NA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCYUJA#issuecomment-541428260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6RHHEKS2BU4Y7VWIFTQOM42NANCNFSM4I7QX6QQ .

simon1967 commented 4 years ago

Thanks so much guy's this helped me a lot pointing me in a direction. Ok i have had https applied and I have been in touch with TMD Hosting all is good on the server apart from URL rewriting extension module - Apache, nginx, lighttpd, LiteSpeed and the tutorial for litespeed on here is missing. I am hoping it is simple can anyone point me too it i have been scouring for the tutorial. Big thanks Awesome Simon

Undefined-Variables commented 4 years ago

https://www.google.com

simon1967 commented 4 years ago

Just to update: I have taken the oppertunity to move to VPS server as this can be configured for the perfect install. There were lots of server config problems inc LiteSpeed etc. Guy's it was you that sent me looking in this direction. So thanks. I could have been another month looking so your input was fanatstic. I think this can be closed now. It will move accross shortly to vps. Simon

Undefined-Variables commented 4 years ago

Install apache2.4, php-7.3 and mariadb-server.

I know apache a lot better than nginx or LiteSpeed so it will be simple if/when you need help :)

simon1967 commented 4 years ago

Thank you once again. I should be moving forward now I have lost 150 members at the first fall over but I will learn of course. You have been amazing for me thanks for the guidance

Best wishes Simon

On Sun, 13 Oct 2019 at 18:38, Undefined-Variables notifications@github.com wrote:

Install apache2.4, php-7.3 and mariadb-server.

I know apache a lot better than nginx or LiteSpeed so it will be simple when you need help :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6XJVRPHKBWCVOYOAELQONMH5A5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBC3LUI#issuecomment-541439441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6R6T6VY67QRGNSKUZ3QONMH5ANCNFSM4I7QX6QQ .

Undefined-Variables commented 4 years ago

You don't have to lose your members you can dump your database in to a text file and import it into your new one, your URL will be the same so they will soon find you.

 sudo   mysqldump --all-databases > dump.sql

Then use FTP Client to download it from the old server.

simon1967 commented 4 years ago

Thanks i tried this before and lost them I used admin area and sql file but i kept getting syntax error maybe it was the old server config again.

Thanks Its a good job your not my next door niegbour

On Sun, 13 Oct 2019 at 18:49, Undefined-Variables notifications@github.com wrote:

You don't have to lose your members you can dump your database in to a text file and import it into your new one, your URL will be the same so they will soon find you.

sudo mysqldump --all-databases > dump.sql

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6U773KAJ724MT6LLG3QONNTDA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBC3SXQ#issuecomment-541440350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6VACPIEH5ZGKIJXFV3QONNTDANCNFSM4I7QX6QQ .

Undefined-Variables commented 4 years ago

Do it from terminal, the file will be were ever you are when you run the command. So do

cd ~

First so you are in your home directory then run the dump. Thats a lot of users to just throw away!

simon1967 commented 4 years ago

Thanks I owe you

Simon " in learning mode"

On Sun, 13 Oct 2019 at 18:57, Undefined-Variables notifications@github.com wrote:

Do it from terminal, the file will be were ever you are when you run the command. So do

cd ~

First so you are in your home directory then run the dump. Thats a lot of users to just throw away!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6VRHCLQIJXT6VYYU3TQONORHA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBC3Y5Y#issuecomment-541441143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6UWDTMGJAEDAAPGY6DQONORHANCNFSM4I7QX6QQ .

polynamaude commented 4 years ago

@simon1967 Don't use sudo in the command. You won't get root access on your shared account. A simple mysqldump to save your DB