Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2005-06-24 23:06:29
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
If the string already existed in the lang files, gTxt() was called. That doesn’t mean I didn’t miss one somewhere though.
Offline
#152 2005-06-26 05:42:58
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Hi there
I’ve tried to use upm_image_popper however all i ever seem to get is is a pop-up window telling me that there are no images (when there certainly are).
I’ve tried: upm_img_popper-0.6.1.txt, upm_img_popper-0.6.2-old.txt, upm_img_popper-0.6.2.txt and get the same results with each.
I’m using the 1.0 RC3 from deanload without any revisions except the plug-ins rss_thumbpop and chh_article_custom.
Any ideas?
Cheers
Mark
Offline
#153 2005-06-26 15:30:12
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
“Old” is the one you want, the other won’t work for you no matter what.
“I’m using the 1.0 RC3 from deanload…”
I just checked, and it works just fine for me.
Are you certain that you’ve entered the correct settings in the admin preferences (not for the plugin – the built-in prefs “?event=prefs”)? If you’ve got the wrong url entered there, it will effect the plugin negatively.
Offline
#154 2005-06-26 21:41:00
Re: upm_img_popper
Awesome plugin! Adds so much useability, thanks mary.
Offline
#155 2005-06-27 20:11:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Oh, and Mark: make sure we’re talking about the same thing – these have to be images uploaded through Textpattern, not FTP. Textpattern doesn’t know about them otherwise.
Offline
#156 2005-06-28 03:42:43
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Hi Mary
Still no success. I really had no idea why it wasn’t working so I figured on a fresh install. I installed revision 454 this morning using SVN. I used the TXP images interface to load a couple of images w thumbnails.
When I clicked on Insert Image I still get a pop up with “There are no images to list.” When there are clearly images in the images folder.
When I clicked the upm_image_popper help button I get the following:
Notice: Undefined variable: message in /Library/WebServer/Documents/current/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 778Followed by the usual output.
And when I returned to the admin interface I got the following error:
Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94 Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94 Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94 Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94 Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94 Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94 Warning: call_user_func(): First argument is expected to be a valid callback in /Library/WebServer/Documents/current/textpattern/include/txp_prefs.php on line 94Which has not disappeared even after removing the plug-in. I’m not sure I should report this to the Bug Report section but there are obviously a coupla issues. It is also possible that I could be a genetically challenged when it comes to Textpattern – the jury is still out!
Just to be clear I have chmod -R 777 the current directory and the files are accessible through Apache onto my browser.
A thing I did notice though was when installing rev 454 I got an error message which I stupidly ignored and didn’t take note of. But I think it was similar this one http://forum.textpattern.com/viewtopic.php?id=9272
When I reloaded the page the error message disappeared. It is also interesting to note that I was getting a message indicating that the image directory was not writable (I had messy URLs in Admin). When I changed/Section/Title in admin the message disappeared.
I’m using Mac OS X incidentally. Not sure what else you need.
Here are a few details from the diagnostics tab:
Pre-flight check
Web Domain DNS lookup fails: 192.168.0.2 (This might be causing the problem but i don’t see why)
Textpattern version: 1.0rc3
Document root: /Library/WebServer/Documents
$path_to_site: /Library/WebServer/Documents/current
Textpattern path: /Library/WebServer/Documents/current/textpattern
permlink_mode: section_title
tempdir: /Library/WebServer/Documents/current/textpattern/tmp
Site URL: 192.168.0.2/current
PHP version: 4.3.11
Magic quotes: 0/0
locale: en_GB.UTF-8
Server: Apache/1.3.33 (Darwin) PHP/4.3.11
Apache version: Apache/1.3.33 (Darwin) PHP/4.3.11
Pre-flight check:
————————————
Web Domain DNS lookup fails: 192.168.0.2
————————————
.htaccess file contents:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
————————————
Cheers
Mark
Last edited by mjarecki (2005-06-28 03:47:37)
Offline
#157 2005-06-28 04:09:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
I can replicate some of those errors.
The help one was something I missed somehow, easy to fix.
The prefs errors are because of the changes to the prefs system that just happened. I don’t know how exactly I can fix them, so it may be a little before I can completely fix it.
Unfortunately, the not working for you part (“no images”) I still can’t replicate, so I only have a general direction of where to look.
Thanks for letting me know all these details, I’ll try and fix this completely as soon as I cam.
Offline
#158 2005-06-28 04:28:21
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Thanks Mary
Is it possible that I’m not using the required version of PHP (Using 4.3.11) , Apache (Using1.3.33 (Darwin)) or MySQL (Using 2.2.7-pl1)?
Maybe httpd.conf problem?
Or the I need to set up TXP in the root directory instead of current?
Do you think the Pre-flight check: Web Domain DNS lookup fails: 192.168.0.2 could be causing problems?
I’m clutching at straws here… Cos it seems that most other plug-ins work for me and really really want to use yours too…
Mark
Offline
#159 2005-06-28 05:08:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
“I’m clutching at straws here…”
I know the feeling.
“PHP (Using 4.3.11) , Apache (Using1.3.33 (Darwin)) or MySQL (Using 2.2.7-pl1)…”
Well, I’m using that version of PHP and Apache, and it works fine. That sounds like your phpMyAdmin version, rather than your MySQL version. If it was a requirements problem, you’d have the built-in images tab not working too.
The strange thing is that the plugin uses an almost identical counting function as the images tab (if the count is less than one, obviously there’s nothing there), and the directory its in wouldn’t affect that. The only difference is that I’ve restricted it to only counting actual images, but not Flash files (you can upload graphic Flash files as “images” in Textpattern, but my image tag doesn’t support outputting them).
The dns thing is strange, but that shouldn’t be the problem either.
How familiar with phpMyAdmin are you? If you’re fairly competant with it, we could run a few queries on it and compare the results.
Offline
#160 2005-06-28 05:38:29
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
I can get around the interface alright.
Incidentally I was looking at the wrong line in phpMy Admin MySql is 4.0.24-standard
What do you want me to test? What queries? Send ‘em over and I’ll see what I get.
Offline
#161 2005-06-28 18:34:48
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Go to your Textpattern database, then to the txp_images table, then run sql. The starting sql in the textarea should be something like:
<code>SELECT * FROM `txp_image` WHERE 1</code>
If you used a prefix for your tables when you ran setup, then it will include the prefix and that’s the table name to use with the following sql:
SELECT COUNT(*) FROM tablename WHERE ext IN('.gif','.jpg','.png');
So, if you didn’t use a prefix, you’d do:
SELECT COUNT(*) FROM txp_image WHERE ext IN('.gif','.jpg','.png');
Got the idea?
It should return a number: what is that number, and how many images do you have uploaded (not counting the thumbnails, just the individual uploaded “images”).
Offline
#162 2005-06-28 20:09:04
Re: upm_img_popper
I’ve used this plugin a lot now, it’s by far the most productive addition. Once again, thanks mary for this.
Any chance of making a version that works with this:
http://emps.l-c-n.com/articles/61/Textpattern-restyled
That style is so much nicer to use than the default admin page, but this plugin didn’t show on the write page. Can’t have that :¬)
Last edited by BlueMamba (2005-06-28 22:04:27)
Offline
#163 2005-06-29 01:04:06
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Hi Mary
Ran the query:
SELECT COUNT FROM txp_image WHERE ext IN(‘.gif’,’.jpg’,’.png’);
Got:
Count(*) equal 1
There is 1 image in the images folder (1.jpg). (There is also 1 thumbnail 1t.jpg). This seems correct.
What next?
Problem is won’t be near a computer for the rest of the day so I won’t get back to you till tomorrow.
Thanks so much for looking into this!!!
Mark
Offline
#164 2005-06-29 02:42:36
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Okay then we proceed with another test, whenever you have the time. “Edit” the plugin and find:
if ($total < 1)
(this is easiest to do by selecting all of the plugin, pasting it into a text editor, use the editor’s search/replace function, then paste all of it back into the textarea)
Just above that line, add in
echo 'Total images: '.$total;
Save, then open the popup again. Somewhere near the top of the page should be:
Total images: some-number
What does it say?
Offline
#165 2005-06-29 08:33:31
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Just did it, got:
Total images:
There was no value after it.
Incidentally, if I type <code><txp:image id=“1” /></code> into an article it does show the image. But the equivalent <code><txp:upm_image /></code> does nothing. Not really sure it should, but I just thought I’d let you know.
Last edited by mjarecki (2005-06-29 08:45:42)
Offline