WordPress.org

Ready to get started?Download WordPress

Forums

124

CataBlog
[resolved] CataBlog Support Forum (110 posts)

  1. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    Please post your support questions for CataBlog here. This is meant only for general support and feedback, their are other CataBlog topics & discussions if you do not have support request. Please look through them first, especially if you want to report a bug, which should not go here. Thanks

    - Zach

  2. kristel_ttm
    Member
    Posted 3 years ago #

    All right, well I do not know anymore how to get my images showing.
    Despite the message that the thumbnails have been regenerated. My thumbnails directory is empty.

    And even when I create a new item in wordpress (no import) it won't upload the image (see my test item on the top of the page).

    http://www.djpromo.nl/wordpress/?page_id=942

  3. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    can you try hitting the reset button in the about page of CataBlog and then uploading an image using the standard "Add New" form in the plugin. If that still doesn't work then you are gonna want to remove all CataBlog directories including the ones in wp-content/uploads. Let me know if you are successful and sorry for all this trouble.

  4. kristel_ttm
    Member
    Posted 3 years ago #

    I have deleted my custom made wp-content/uploads/catablog directory, renamed the original one again (the one which is read-only) and have been re-inserting my images manually. Everything seems to work now. It's too bad I could not replace the folder images but well.

    http://www.djpromo.nl/wordpress/?page_id=942

    I still have an issue with the XML export though. The XML file is empty. So that worries me in case there is an update in the future where I need to export-import my data.

    Oh, and I made a copy of the file catablog.css in my child theme and made some modification but it did not overwrite it.

  5. kristel_ttm
    Member
    Posted 3 years ago #

    Is there anyone else out there with an export problem ?
    Now I would like to backup my catalog before updating the plugin to version 0.9.0 but the created xml file is empty (0kb).

  6. brownie490
    Member
    Posted 3 years ago #

    Just upgraded to 0.9.0 and all of my items have disappeared!

    If I try and create more items, I get a message telling me it was created successfully, but doesn't actually create the item.

    Not happy as I've spent DAYS adding items in and now they're gone :(

  7. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    kristel_ttm,

    keep in mind you could also do a mysql dump of the wp_catablog_items table. That should be sufficient for replicating your table data exactly as is. You should then make sure to do these two changes manually, change the price field type to float and change the name of the order field to ordinal. Don't forget about the images as well and backup your catablog folder in the wp-content/uploads/ directory. A good article about file permissions can be read here, it might help you figure a way to upload files that you and php both have permission too.

    I don't know why you are getting an empty file, the export feature works on all the setups I tried it with. Make sure to open the file and confirm it is empty in a text editor like textmate. You could also easily make the xml file generated, just reference the code below and make a catablog_item for each database row. Make sure you have a value for id, ordinal and image at least, also be aware of the CDATA tags which are necessary for the import process. Good luck hope I helped and I hope that 0.9 will work better in regards to exporting.

    <?xml version="1.0" encoding="UTF-8" ?>
    
    <catablog_items date="2010-10-20" time="14:48:31">
    	<item>
    		<id>4</id>
    		<ordinal>0</ordinal>
    		<image><![CDATA[water-lillies-1287448511.jpg]]></image>
    		<title><![CDATA[water lillies]]></title>
    		<link><![CDATA[/somewhere/far/away]]></link>
    		<description><![CDATA[this is a standard windows image that is installed in every version. really i should be using a less generic image, but i am not.]]></description>
    		<tags><![CDATA[flowers nature default photo]]></tags>
    		<price><![CDATA[65]]></price>
    		<product_code><![CDATA[SKU #345665 UTA]]></product_code>
    	</item>
    </catablog_items>
  8. kristel_ttm
    Member
    Posted 3 years ago #

    Thank you for your help.
    I already made a mysql dump of the catablog table, indeed. But the problem is the image folder. I can back it up, but since I won't have the writing permission on the new image folder (Apache owns it and I could not to change that), I won't be able to upload my images again, remember ?

    That's the reason I had to upload all my images manually last time.

  9. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    A few options that I thought of about this one:

    - Is there anyway for you to login to your ftp as the apache user or get super user access, even just for changing file ownership and permission? Do you know what SSH is and can you connect to your web server that way?

    - When you made your own catablog folder did you make sure to set the privileges to read/write/execute for user/group/public, also known as 777? Also any folders or other content you upload inside the catablog directory should have permission level 777 as well. If that works then you can try different more secure permission levels.

    - Some kind of PHP script or CataBlog feature to "lock/unlock" the catablog directory and it's content for temporary editing.

  10. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    brownie, don't delete anything or do anything rash. try an export and see if the file contains anything, if so, please post it here so I may read it. also, did you make an export before you upgraded, if so try importing it. If all else fails try the reset button in the about page. then a fresh import from a properly formatted xml file (look above)

  11. brownie490
    Member
    Posted 3 years ago #

    I didn't take a backup unfortunately. If I export my data, I get the following in the output file.

    <br />
    <b>Parse error</b>:  syntax error, unexpected T_STRING in <b>/home/bananalo/public_html/wp-content/plugins/catablog/templates/admin-export.php</b> on line <b>1</b><br />

    Hope this gives you something to go on :)

    Many thanks in advance.

  12. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    There is an informative article about file permissions and changing them here.

  13. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    brownie, can you replace the first line of that file, catablog/templates/admin-export.php using the plugin editor.

    replace the line that looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>

    with this line:
    <?php echo "<?xml version="1.0" encoding="UTF-8" ?>" ?>

    my thoughts are that your server is setup to process php tags <?php ?> without needing the php after the first question mark, this is an older and less desirable configuration in my humble opinion, but CataBlog should work in both if possible.

  14. kristel_ttm
    Member
    Posted 3 years ago #

    Thank you.

    I know how to change the permission of a file or directory but in this case it won't let me because 'I am not Apache'. I do not know how to 'log in' as Apache, I tried everything I could (incl. in Plesk) to change the catablog folder permission. I also tried all kind of chmod and commands in terminal without any success (but I do not know that part well enough, I'm afraid).

    Don't get me wrong, I love the plugin and everything works fine for now. But I won't be able to update the plugin until I found a solution to backup/re-import my image folder.

  15. brownie490
    Member
    Posted 3 years ago #

    Thanks. I changed that line, but got a syntax error. I think the echo part needed single quotes instead of speech marks

    <br />
    <b>Parse error</b>:  syntax error, unexpected T_DNUMBER, expecting ',' or ';' in <b>/home/bananalo/public_html/wp-content/plugins/catablog/templates/admin-export.php</b> on line <b>1</b><br />

    I then changed it to the following:
    <?php echo '<?xml version="1.0" encoding="UTF-8" ?>' ?>

    ... and then didn an export again, it's showing no items.

    <?xml version="1.0" encoding="UTF-8" ?>
    <catablog_items date="2010-10-20" time="17:35:15">
    
    </catablog_items>

    Is it looking like i'll have to do a reset?

  16. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    Brownie,

    I'm sorry to hear that your table is empty, I think that reset would be the last option now. I'm not sure what happened, I really do hate when something like this happens. Perhaps you can put this in the bug reports forum with a detailed report. Please include information about your browser, server, WordPress, plugin versions before and after the upgrade and anything else you can think of.

    Also thanks for helping me fix the rendering bug in the xml export. I appreciate your patience with CataBlog, I really do want to get it to a stable place at this point and not add to many new features.

  17. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    kristel_ttm,

    Today I released a new version, 0.9.2. With this version you should be able to unlock your catablog directory for FTP uploads. Just make sure not to replace any of the folders, just the content of the originals folders. If you can backup the folders to your local machine you should be set. Good luck.

  18. kristel_ttm
    Member
    Posted 3 years ago #

    Thank you soooo much macguru2000. I updated to the new version (with a little fear despite I backed up everything first) and it is such an improvement. the function to unlock the folder is great ! At least I know I can import all my images at once.

    Thank you again !

  19. kristel_ttm
    Member
    Posted 3 years ago #

    Oh and I forgot to mention that my xml export problem is also solved since the new update :)

  20. kristel_ttm
    Member
    Posted 3 years ago #

    What was the template to have the paypal button only for items with a price ?

  21. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    I'm glad to hear that the XML export and folder unlocking is working for you. I figure that most users don't have knowledge of linux systems and file permissions so the unlock feature was a natural way to go for FTP users.

    Now for showing buy now buttons only for items with a price...I have realized that this isn't possible with the current release...sorry....so I will need to release an update to fix that bug. I will be reporting it in the bugs section and hopefully a release will be out soon. The way I am thinking of solving this issue is to have two text boxes in the view section, one for the layout and one for the buy now button. That way I can conditionally show the buy now code only when the price is above zero. Also, people will still be able to write their own buy now button code in the view panel. what do you think?

  22. kristel_ttm
    Member
    Posted 3 years ago #

    sounds good! It was not my intention to give you more work, I thought it was something I could change in the template.

  23. akhblanchard
    Member
    Posted 3 years ago #

    Hi, I just found out about CataBlog today, and I installed it on two of my test blogs (both running WP 3.0.1). But, under "Add New CataBlog Entry", when I double-click on "Select Image" to add a picture to a new catalog, nothing happens on either blog. What do I need to do? Thanks for your help!

  24. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    akhblanchard,

    Are you using an approved web browsers with javascript support? I state in the documentation that you need to use Internet Explorer 8+, Firefox 3+ or Safari/Chrome. If you tell me your browser, operating system and confirm javascript is enabled I will try and help you some more. Thanks,

    - Zach

  25. akhblanchard
    Member
    Posted 3 years ago #

    I bet that's the problem. I was using IE 7. I do have access to other browsers. I will try another one. Thanks for your very quick help!

  26. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    That could very well have been the problem. Luckily only the admin panels have browser requirements. The actual catalog that is rendered in your blog pages should work in all browsers, if your css is coded properly. Good luck, hope all works well when you get to try it on another browser.

  27. chintu74
    Member
    Posted 3 years ago #

    Hello macguru2000,

    Using wordpress version 3.0.1

    Followed your instructions on the manual ftp upload - uploaded the images manually, unlocked folders and tried to regenerate the thumnails but nothing works. I am using the plugin on a sub-blog of the main blog. Thanks.

    Also, to let u know, the new wordpress works a lot like wpmu: it does not use any "uploads" folder for media uploads; rather, it uses a directory called "blogs.dir". Of course I would love to have an option to choose my own directory for the thumbnails, if possible :)

  28. chintu74
    Member
    Posted 3 years ago #

    >>when I double-click on "Select Image" to add a picture to a new catalog, nothing happens on either blog. What do I need to do? Thanks for your help!

    That is the exact problem I had. I am using Firefox. Anyway, it is no big deal if I can get the manual ftp upload to work (in fact, the manual option is much safer IMO as far as security is concerned)

  29. macguru2000
    Member
    Plugin Author

    Posted 3 years ago #

    chintu74,

    I appreciate that you are using WordPress MultiSite and its really exciting that it has been incorporated into version three. Unfortunately I started development of CataBlog before wpmu was standard and well, it doesn't play nice with multiple sites. Until I have a chance to upgrade CataBlog it will not work with wpmu, at least in no capacity that I am willing to support. This is probably why you are having problems unlocking and uploading images manually. Now as far as the "Select Image" button not working, what version of Firefox are you using? What operating system, is javascript on? Thanks for your comments,

    - Zach

  30. chintu74
    Member
    Posted 3 years ago #

    Okay I get it. That is why probably the image upload is not working as well. Anyway, my Firefox version is 3.5.13. ;)

124

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic