Closed whisp closed 11 years ago
Can you post the error message you are getting? I'm assuming you are talking about the smarty cache and config folders. Also please note, this has to be in the root of the domain. example. mywebsite.com not mywebsite.com/sper.gs
thanks for fast reply. it just say server error. oh and i have did like this Domain.com/spergs/index.php
and i cant open and php it gives server error.
i tried changing spergs to something else aswell. and on schema whre it says database : spergs. i did other name which i used trying to make it work
and yea i meant smarty cache and configs folders coz in config file its mentioned in bottom.
"Domain.com/spergs/index.php" is your problem it should be domain.com/index.php move evrything that is in the spergs folder one directory up.
As for the database name, it can be what ever you want as long as you change the name in includes/Config.ini.php.
k. will try that. but is there anyway to make it work like that > Domain.com/spergs/index.php ? and will it work without theconfigs and cache folders ? and renaming the spergs folder wont create any probs ?
not at the moment, that is on the list to eventually do though. and no it will not work without the folders. You do have the folders, just the application is looking in the wrong spot. Moving the files will fix this.
thats all i see on smarty folder > http://i.imgur.com/nTgJBt3.png.
m such a n00b no idea which file to move and where :p
no worries, I provided zero install instructions. but yea thats all that is needed. in that folder. as far as things to move. go into the spergs folder press ctrl a, then press ctrl x. Go to you htdocs folder and press ctrl v.
ah not that hehe i meant i have no idea which files to put in configs and cache folder hehe and i cant see htdocs anywhere on server :(
you shouldnt have move anything. just put the files in the folder where you would normally put your other webfiles. edit includes/Config.ini.php to match your database settings and thats it. What are you using as your web server?
dedicated server, debian. running 2 sites on it. thats the problem :p thats y i had to create folder for spergs :(
ah ok, the easiset way to do this is set up a subdomain then add it as a virtualhost. here is the docs for a virutalhost
http://httpd.apache.org/docs/2.2/vhosts/examples.html
if thats not an option you will probably have to wait till i update it to run in a subdir.
What's involved in doing that? Adding a site location var to config.ini and updating all references throughout?
you will have to make a DNS entry to the subdomain you want. exampler spergs.domain.com then edit /etc/apache2/sites-enabled/000-default and put in an enrty that looks like this:
<VirtualHost *:80> DocumentRoot /path/to/sper.gs/folder ServerName spergs.domain.com </VirtualHost>
then restart apache.
thanks mate. m gonna try that virtualhost stuff.. never done that before :p thanks for helping out. will try tomorrow and report back :D or it would be awesome if u can update it to run from subdir :)
np, and dont forget to edit includes/Config.ini.php and set the DOMAIN value to spergs.domain.com.
tried putting files 1 dir up. at var/www and when tried to open it gives this error >> "Error :("
cool so it looks like its running but it may have a database problem. did you change the setting in includes/Config.ini.php to match your environment?
yup i did :( tried checking basline file aswell. but still its not working. gives same error "Error :("
i tried on local pc. have setup for that... i do stuff at home pc 1st to check :p for other sites aswell. and its just not running on local pc... have something to do with home pc ?
ok try open up a terminal and type sudo tail -f /var/log/apache2/error.log then reload the web page and paste what ever errors you get.
PHP Fatal error: Call to a member function assign() on a non-object in /Sites/includes/deinit.php on line 29 PHP Notice: Undefined variable: smarty in /Sites/includes/deinit.php on line 29 PHP Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Sites/includes/init.php on line 42
do you have mysql installed and is it running?
yeah it is running but my socket dir is /tmp/mysql.sock
set the location of mysql and refreshed the page and then more errors :(
PHP Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /Sites/includes/smarty/templates_c/wrt510c2d2de2bd3' in /Sites/includes/smarty/sysplugins/smarty_internal_write_file.php:44\nStack tracen#0 /Sites/includes/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/S...', '<?php /* Smarty...', Object(Smarty))\n#1 /Sites/includes/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()\n#2 /Sites/includes/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('login.tpl', NULL, NULL, NULL, true)\n#3 /Sites/includes/deinit.php(30): Smarty_Internal_TemplateBase->display('login.tpl')\n#4 /Sites/index.php(37): require('/S...')\n#5 {main}\n thrown in /Sites/includes/smarty/sysplugins/smarty_internal_write_file.php on line 44
chmod 777 ./includes/smarty/templates_c/
i havent tried that command yet but will do tomorrow probably :) and i can see some updates have been made on files. will that fix the problems i was having with site ? and what if i can download the latest smarty version from its site and copy paste it there ? will it work and wont give tose errors ? sorry for lot of questions. :p but had to ask. really want to make it work :)
and it would be awesome if it can work in subdir aswell. if u can update it to work like that. thats if u get some free time to do that :)
the problem is a permissions problem, the app does not have permissions to write to that dir. chmodding it to 777 will fix it. Upgrading the smarty version should work (have not tested it) but it will not fix the permissions problem. The updates i made were new features it wont fix your current problem. I am working on the subdir thing but it will take a little while as all of the absolute references will need to be updated.
kool thanks man. i will be waiting for subdir update :) and ofc i will try the command and report back :) thanks for helping and answering quesitons. :) :+1:
not a problem. let me know what you think :)
so took some time. was busy :( so when i tried on home pc it worked after that command. and then i have uploaded the site on server main. and it says this error again :(
"Error :( Notice: Undefined variable: auth in /var/www/index.php on line 27
Notice: Undefined variable: smarty in /var/www/index.php on line 33
Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33"
Oh and i have put the sphinx folder in var. and files from spergs folder in var/www
did you update your database information in Config.ini.php? it looks like it cant make a connection.
yea its set :( now this
could not find driverError :( Notice: Undefined variable: auth in /var/www/index.php on line 27
Notice: Undefined variable: smarty in /var/www/index.php on line 33
Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33
can you uncomment line 66 in init.php and then post the error?
when commented
Error :( Notice: Undefined variable: auth in /var/www/index.php on line 27 Notice: Undefined variable: smarty in /var/www/index.php on line 33 Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33
after uncommented
and the error changed to could not find driverError :( Notice: Undefined variable: auth in /var/www/index.php on line 27 Notice: Undefined variable: smarty in /var/www/index.php on line 33 Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33
actually it looks like pdo_mysql does not come with the php package in Debian. take a look at this.
http://blog.gabrielsaldana.org/how-to-install-php-pdo-on-debian-lenny/
k. gonna try tomorrow. its late now :( hope after that it will work :(
after installing that plugin and stuff my friend finally made site work a bit. but when i open the site on index page it gives this error >> Notice: Undefined variable: message in /var/www/index.php on line 34
and on register page error >>
Notice: Undefined index: message in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 39
Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 39
Enter your details:
Notice: Undefined index: invite in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 49
Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 49 Desired Username:
Email:
Password:
Password (Again):
Notice: Undefined index: invite in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 63
Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 63 Invite Code:
On reset pass page error >> Warning: strftime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 148
Notice: Undefined index: change in /var/www/includes/smarty/templates_c/5a9dcdd90a5a218c32816f9dbeaf049eb3ec4fe0.file.forgotPassword.tpl.php on line 41
Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/5a9dcdd90a5a218c32816f9dbeaf049eb3ec4fe0.file.forgotPassword.tpl.php on line 41 Логин:
and finally i cant login to site lol the use and pass in readme i tried that and i cant login :p pls help
I am getting the same errors as Whisp above, has anyone come up with a solution?
i need to clean up the code a bit. this is still very early alpha. a qucik fix would be to turn off verbose errors in PHP.ini. yea i screwed up the default user but you should be able to register an account using anything as the invite code for the time being.
yup tried that. acc made but its like normal account. and no sections and stuff there yet. so cant make them till have admin permissions. and there r alot of errors aswell when i logged into site after making a normal user account. :( errors from my last post r on site on index , register pages. and after loggin into site there r new errors aswell like those on top main page
Notice: Undefined variable: topic_data in /var/www/includes/Board.class.php on line 138
Notice: Undefined variable: topic_data in /var/www/includes/Board.class.php on line 213
and Archieves.php > Not Found
The requested URL /archives.php was not found on this server.
Addalink.php >> Deprecated: Function eregi() is deprecated in /var/www/includes/Override.inc.php on line 127
Notice: Undefined index: error_msg in /var/www/includes/smarty/templates_c/8f6ea95b36593bd9ab710074a5413ab83462bf14.file.addlink.tpl.php on line 62
Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/8f6ea95b36593bd9ab710074a5413ab83462bf14.file.addlink.tpl.php on line 62
http://puu.sh/22s79 http://puu.sh/22s7Y
images might help :) ^^
and then Links.php >> Notice: Undefined variable: link_data in /var/www/includes/Link.class.php on line 83
links.php?mode=search >> Notice: Undefined variable: link_list in /var/www/links.php on line 78
Userlist.php >> Notice: Undefined variable: user_search in /var/www/includes/User.class.php on line 562
Notice: Undefined variable: topic_data in /var/www/includes/User.class.php on line 730
boardlist.php >> Not Found
The requested URL /boardlist.php was not found on this server.
postmsg >> Notice: Undefined index: message_id in /var/www/includes/smarty/templates_c/bb22df878e51594a3bd481dd617ea2c1e15b33c7.file.postmsg.tpl.php on line 120
Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/bb22df878e51594a3bd481dd617ea2c1e15b33c7.file.postmsg.tpl.php on line 120
search.php?board=42 > 404 not found.
trying to help reporting errors :) this will help everyone. me aswell to set it up with fixes when its fixed :)
thanks, that does help. also there is no admin functionality. the pages that are missing are because i have not created them yet.
so no admin functionality means there isnt any Admin class on site ? with permissions and panel to manage site ?
and m gonna wait for error solutions now :) thanks :+1:
That's what i'm gettin from what he said, hopefully more functionality will come soon.
Keep up the good work!
disallowed /register.php in robots and can still make acc :( with any inv code...... :(
guess its gonna take time :(
yea sorry, this is just a personal project i do in my spare time which has been pretty sparse lately.
The robots.txt is for web crawlers and search engines like google/yahoo etc. People were having problems with the reg codes so I just made it open for the time being.
ah i c... will be waiting on updates :) curiosity of watching it working well :p hehe
Sorry for the delay, all of the errors should now be removed and this code can now be run in a subdirectory.
Closing.
missing cache and configs folders... and whatever i tried to make it work other then those folders its giving server error. :( help pls..