yTakkar / Instagram-clone

An Instagram-clone with my own flavors and features. Own the project with 5 simple steps!! 📸💝☢️ - No longer maintained.
MIT License
572 stars 250 forks source link

Unable to view website #7

Closed MarcAnthonyPhotography closed 7 years ago

MarcAnthonyPhotography commented 7 years ago

I created a database and named my database eventpix. I imported the database just fine. I replaced all references of the database to host=localhost;dbname=eventpix;charset=utf8mb4', 'myusername', 'my password'. I changed the root path from /faiyaz/Instagram to /eventpix so my site is www.mysite.com/eventpix. Any thoughts on why when I go to the root site (ie. www.mysite.com/eventpix) it is blank. Your instructions seemed straight forward. I should note. My website is https. Not sure if that matters. I also checked my error log and I get this. PHP Parse error: syntax error, unexpected '$noti' (T_VARIABLE) in /home/ipixsocial/public_html/eventpix/config/class/post_comment.class.php on line 399

yTakkar commented 7 years ago

Not sure on why it's not working for u, but i'll go through the instructions again. Give me your email and l'll send you screenshots of every step.

MarcAnthonyPhotography commented 7 years ago

Thank you. My email is marcanthonyphotography@gmail.com

githubertus commented 7 years ago

missing semicolon (;) end of line 397

MarcAnthonyPhotography commented 7 years ago

Thank you. I got that to work but now when I try to create an account there is an issue. I am able to create an account and it stores the info properly in the database but the account freezes when you try and login. Here's my website. https://ipixsocial.com/eventpix

yTakkar commented 7 years ago

@MarcAnthonyPhotography i'll check!!

yTakkar commented 7 years ago

@githubertus which file??

githubertus commented 7 years ago

config/class/post_comment.class.php

yTakkar commented 7 years ago

Thnx @githubertus i'll fix and commit it!

yTakkar commented 7 years ago

Fixed it!! Mistakenly wrote ***** instead of GMAIL_PASSWORD in login.class.php. Make sure you are using gmail account. Also Google sometimes blocks sent emails, which they did: snap 2017-06-28 at 04 29 21 Pull for these new changes

MarcAnthonyPhotography commented 7 years ago

Still having issues. It freezes when I try to login. The user info is stored in the DB but I can't login or do anything. I attached a pdf version of the php scripts. I commented out my password with but can you tell me if this is correct? Also, any reference to database I have $db = new PDO('mysql:host=localhost;dbname=eventpixdatabase;charset=utf8mb4', 'eventpixadmin', ''); (**** is my password).

forgot.pdf login.pdf

wazowski78 commented 7 years ago

Check the php version.

Enviado desde mi iPhone

El 29 jun 2017, a las 19:30, Marc Matteo notifications@github.com escribió:

Still having issues. It freezes when I try to login. The user info is stored in the DB but I can't login or do anything. I attached a pdf version of the php scripts. I commented out my password with **** but can you tell me if this is correct? Also, any reference to database I have $db = new PDO('mysql:host=localhost;dbname=eventpixdatabase;charset=utf8mb4', 'eventpixadmin', ''); ( is my password).

forgot.pdf login.pdf

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

MarcAnthonyPhotography commented 7 years ago

It's php5.6. Are they any special php settings I need to enable?

Cordially, Marc A. Matteo iSIT Kiosk www.isitkiosk.com 856.981.3209

On Jun 29, 2017, at 1:44 PM, wazowski78 notifications@github.com wrote:

Check the php version.

Enviado desde mi iPhone

El 29 jun 2017, a las 19:30, Marc Matteo notifications@github.com escribió:

Still having issues. It freezes when I try to login. The user info is stored in the DB but I can't login or do anything. I attached a pdf version of the php scripts. I commented out my password with **** but can you tell me if this is correct? Also, any reference to database I have $db = new PDO('mysql:host=localhost;dbname=eventpixdatabase;charset=utf8mb4', 'eventpixadmin', ''); ( is my password).

forgot.pdf login.pdf

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

MarcAnthonyPhotography commented 7 years ago

I tried setting to php 5.5 and 5.4. It still freezes on logging in. I'm stumped.

yTakkar commented 7 years ago

I followed all the steps again to check if it works. As I was following I noticed a bug. In point no. 4 $db = new PDO('mysql:host=host;dbname=instagram;charset=utf8mb4', 'root', 'user') is wrong, correct one is $db = new PDO('mysql:host=host;dbname=instagram;charset=utf8mb4', 'user', 'password'). I've commited it, here's the link commit

githubertus commented 7 years ago

@MarcAnthonyPhotography If the package doesn't work, there must be errors being logged:

@yTakkar Actually there's a good chance for making typos with the endless number of files you have to adapt to your own environment. It would be of great help having just one php file with the db connector to be included where necessary instead of having the same code again and again. The same is true for the path setting.

yTakkar commented 7 years ago

@githubertus I thought about it long ago, but never got time as I was always busy with some projects. But now thinking to do it finally.

yTakkar commented 7 years ago

@githubertus, did it!!

githubertus commented 7 years ago

Well done! I think this will help you getting a lot more installations. :) It's likely you'll get even more after making the whole project responsive via bootstrap or something like that - my main interest was your elegant ajax part, to be honest.

yTakkar commented 7 years ago

@githubertus thnx a lot!!