I'm still working on getting N-13 setup on my site and have hit few problems: I've got two templates - one (which works fine) for showing content in a sidebar using {shortstory} and one for a news page that shows the complete entries which is having a problems:
1. On my main news page the {story} content is not displaying (the {title} and {date} show fine).. this is how I've got it setup:
• There is definitely content in the news entries for {story}
• When i go to the N-13 news folder at "http://localhost:888/<my-domain>/news/" the {story} also does not show.
• I'm using MAMP running apache, PHP 5.2.5, N-13 v3.4,
Q What is causing the empty <p></p> tags before the <h2> header shown the source? Is it possible to have N-13 only output only the HTML that I place in the template? Q Would a donation allow me to get the 'powered by' code removed from the source? I've found another way ;) but think you should be rewarded for your efforts!
• When I visit the news page my PHP error log lists hundreds of lines of 'undefined index: langtype (line 43)' errors then displays the following:
Code:
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: archives in /Applications/MAMP/htdocs/wjs/news/index.php on line 40
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: id in /Applications/MAMP/htdocs/wjs/news/index.php on line 50
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: goto in /Applications/MAMP/htdocs/wjs/news/index.php on line 55
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: 4 in /Applications/MAMP/htdocs/wjs/news/index.php on line 74
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: name in /Applications/MAMP/htdocs/wjs/news/index.php on line 75
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: showstats in /Applications/MAMP/htdocs/wjs/news/index.php on line 79
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: ajax in /Applications/MAMP/htdocs/wjs/news/index.php on line 101
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: ajax in /Applications/MAMP/htdocs/wjs/news/index.php on line 228
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: static in /Applications/MAMP/htdocs/wjs/news/index.php on line 229
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: static in /Applications/MAMP/htdocs/wjs/news/index.php on line 283
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: cat in /Applications/MAMP/htdocs/wjs/news/index.php on line 415
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: author in /Applications/MAMP/htdocs/wjs/news/index.php on line 442
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: f in /Applications/MAMP/htdocs/wjs/news/index.php on line 463
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: u in /Applications/MAMP/htdocs/wjs/news/index.php on line 463
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: nppage in /Applications/MAMP/htdocs/wjs/news/index.php on line 469
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: cppage in /Applications/MAMP/htdocs/wjs/news/index.php on line 473
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: page in /Applications/MAMP/htdocs/wjs/news/index.php on line 483
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: orderby in /Applications/MAMP/htdocs/wjs/news/index.php on line 492
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: newsorder in /Applications/MAMP/htdocs/wjs/news/index.php on line 515
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: page in /Applications/MAMP/htdocs/wjs/news/index.php on line 533
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: f in /Applications/MAMP/htdocs/wjs/news/index.php on line 552
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: u in /Applications/MAMP/htdocs/wjs/news/index.php on line 552
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant title - assumed 'title' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 130
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: userlogged20 in /Applications/MAMP/htdocs/wjs/news/functions.php on line 171
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant timestamp - assumed 'timestamp' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 182
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: timezone in /Applications/MAMP/htdocs/wjs/news/functions.php on line 182
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant id - assumed 'id' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 184
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant viewcount - assumed 'viewcount' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 185
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: aafiles in /Applications/MAMP/htdocs/wjs/news/functions.php on line 225
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: userlogged20 in /Applications/MAMP/htdocs/wjs/news/functions.php on line 251
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: email in /Applications/MAMP/htdocs/wjs/news/functions.php on line 256
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: encoded in /Applications/MAMP/htdocs/wjs/news/functions.php on line 432
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant email - assumed 'email' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 259
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: email in /Applications/MAMP/htdocs/wjs/news/functions.php on line 259
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant useravatar - assumed 'useravatar' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 288
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: useravatar in /Applications/MAMP/htdocs/wjs/news/functions.php on line 288
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: allnews in /Applications/MAMP/htdocs/wjs/news/index.php on line 692
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant title - assumed 'title' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 130
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: userlogged20 in /Applications/MAMP/htdocs/wjs/news/functions.php on line 171
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant timestamp - assumed 'timestamp' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 182
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: timezone in /Applications/MAMP/htdocs/wjs/news/functions.php on line 182
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant id - assumed 'id' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 184
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant viewcount - assumed 'viewcount' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 185
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: aafiles in /Applications/MAMP/htdocs/wjs/news/functions.php on line 225
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: userlogged20 in /Applications/MAMP/htdocs/wjs/news/functions.php on line 251
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: email in /Applications/MAMP/htdocs/wjs/news/functions.php on line 256
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: encoded in /Applications/MAMP/htdocs/wjs/news/functions.php on line 432
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant email - assumed 'email' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 259
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: email in /Applications/MAMP/htdocs/wjs/news/functions.php on line 259
[11-Feb-2010 12:02:30] PHP Notice: Use of undefined constant useravatar - assumed 'useravatar' in /Applications/MAMP/htdocs/wjs/news/functions.php on line 288
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: useravatar in /Applications/MAMP/htdocs/wjs/news/functions.php on line 288
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: pages in /Applications/MAMP/htdocs/wjs/news/index.php on line 731
[11-Feb-2010 12:02:30] PHP Notice: Undefined index: ajax in /Applications/MAMP/htdocs/wjs/news/index.php on line 1229
[11-Feb-2010 12:02:30] PHP Notice: Undefined variable: static in /Applications/MAMP/htdocs/wjs/news/index.php on line 1230
• Also! I just tried to upload an image using 'options>image uploads> and I got a screen the same as a previous post and when I try to upload a gif file I get an error (see screen shot attached).
Apologies for bombarding you with so much at once!
I appreciate the help getting this working, this script seems to be a perfect solution once these few problems are ironed out, let me know if you need any more info
I've just tried to put the site online to illustrate the problems I'm having detailed in the post above.
I uploaded the files from my localhost to the live server and used phpMyadmin to download the database from localhost and upload it to the live server.
Now when I visit the live site, I get the following error:
Code:
Unable to prepare: SELECT registrationaccess,registrationallow,commentslength,furlextension,furlenabled,furlprefix,furldirname,spamtime,spammsg,commentmsg,commentapprovemsg,timezone,bannedmsg,catdelimiter,useimgverification,salt,version,scriptpath,sendtodelay,regcomment,commentsnotify,registernotify,emailnotify,unapprovednotify,filetime FROM news30_options WHERE 1
Arguments:
The live site can be viewed here
Is the way I have transferred the site from local to live the correct way or do I have to 'install' N-13 on the live server first?
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Regarding the {story} tag not actually showing. This is quite bizarre, I'm not actually sure why it's doing this. I'm hoping once you move it to your live server the problem will correct itself.
As for the problem with the page not displaying properly when uploading images. I've yet to discover whats causing this though I have a feeling it might be due to the upload process trying to CHMOD the newly uploaded file.
If you manage to get the system up and running properly on your live server. You can test this by editing the modules/modimageuploads.php, around line 229 you'll see this
Code:
if(!chmod($uploaddir.$file, 0655)){ echo "<span class=\"error\">Unable to CHMOD file</span>"; }
You could try deleting those lines of text or commenting them out, then try uploading a new image.
• Firstly, good news re. the database unable to prepare message - I re-imported the database and the error disappeared :)
• When logging into admin.php I got the same problem posted here, though your fix worked..
• Unfortunately the disappearing {story} problem has not disappeared :(
• Re. the page display problems. I tried removing the lines you mentioned in 'modimageuploads.php' - the image does upload ok but I still get a broken page (see attached)
The most troubling one is the {story} tag not appearing - even when I specify one of the default templates it still won't show..
I'm wondering if I've missed something fundamental along the way?
If there's anymore info I can give to help get to the bottom of the problems, let me know, I don't mind setting you up with login details if you think it would help..
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
The image/file upload problem. Another user who has had the same problem has given me access to their site and I've found what I think is causing the page to display incorrectly when an image has been uploaded. I've given him a fix to try and once he reports back, assuming it works I'll then let you know how to fix that also.
The {story} not displaying is a troubling one. Ideally I would need access to your server to do a bit of troubleshooting on it. Is this a possibility? Without access there isn't much I can do unfortunately.