Member
Member
NealR   2012-05-08, 14:14
#1

hi!

I'm using the tweet_news plugin on my install, but currently it is creating a shortened URL when it tweets. Now I don't really need this,so would be nice to remove it, but if I can't, then how do I fix the header errors that the shortened URLs produce?
if you view the website outside of the shortened URL then there are no errors. an example of the error can be seen here: Notice: class-album detected an invalid folder name: tiny. in /home/ccphoto/public_html/zp-core/class-album.php on line 70

Notice: class-album detected an invalid folder name: tiny. in /home/ccphoto/public_html/zp-core/class-album.php on line 70

Warning: Cannot modify header information - headers already sent by (output started at /home/ccphoto/public_html/zp-core/class-album.php:70) in /home/ccphoto/public_html/index.php on line 123

Warning: Cannot modify header information - headers already sent by (output started at /home/ccphoto/public_html/zp-core/class-album.php:70) in /home/ccphoto/public_html/index.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/ccphoto/public_html/zp-core/class-album.php:70) in /home/ccphoto/public_html/index.php on line 125

Warning: Cannot modify header information - headers already sent by (output started at /home/ccphoto/public_html/zp-core/class-album.php:70) in /home/ccphoto/public_html/index.php on line 126

Administrator
Administrator
acrylian   2012-05-08, 14:18
#2

If you don't want the tinyurl the plugin creates you have to create a custom version of it.

So when do you exactly get these errors? When you tweet or when someone visits your site via that tinyurl?

Example links would really be helpful.

Member
Member
NealR   2012-05-08, 14:32
#3

it is when someone visits the site from a tweet. and to see it on site: http://www.clear-capture.com/tiny/65 but if you go direct to http://www.clear-capture.com/random then it loads without an error

Administrator
Administrator
acrylian   2012-05-08, 15:01
#4

I cannot reproduce this locally or on my live server. Are you sure you have the right .htaccess file for this Zenphoto release?
Additionally please also try a standard theme in case this is theme related (no idea why though).

Member
Member
NealR   2012-05-08, 21:56
#5

well... I looked into the htaccess, and according download of zen it matches. But I did notice one line on the tiny rewrite section on line 64: RewriteRule index.php$ index.php [L,QSA]

I changed this round to: RewriteRule index/.php$ index.php [L,QSA]

And now it appears to have resolved those issue, and loads the site correctly now. Not noticed anything else a problem so far either

Administrator
Administrator
acrylian   2012-05-09, 11:16
#6

That line is actually a standard rewrite rule there since forever. The line before that (RewriteRule ^tiny/([0-9]+)/?$ index.php?p=$1&t [L,QSA]) is the tiny rewrite rule.

I did never notice any issues and so far you are the first to report it. Htaccess is a complicated thing for sure so maybe we should investigate that. Please open a ticket about that so we don't forget it. Please post info about your server config as well (we once had an issue older vs newer apaches which took quite long to find out).

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.