You are here:  » Install Problem

Support Forum



Install Problem

Submitted by dalster on Wed, 2007-03-21 16:09 in

Hi,

Okay I just purchased and went to install. Went to /admin/ area and get these errors?

Warning: opendir(../feeds/) [function.opendir]: failed to open dir: No such file or directory in /home/xxxxxx/public_html/admin/index.php on line 42
Feed Registration

Warning: readdir(): supplied argument is not a valid Directory resource in /home/xxxxxxx/public_html/admin/index.php on line 85

Warning: asort() expects parameter 1 to be array, null given in /home/xxxxxxx/public_html/admin/index.php on line 90

Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/admin/index.php on line 92
Modified Imported Products Clicks

Submitted by support on Wed, 2007-03-21 16:12

Hi,

These errors are because your feeds/ directory does not exist in your Price Tapestry installation.

Because the /feeds directory is empty within the distribution you can sometimes find (depending on your unzip program) that it has not been extracted, and that looks like what has happened here.

To solve the problem, either create the feeds folder on your local copy and then upload it your site, or create it on your site directly (again using your FTP program).

That should be all it is.

Cheers,
David.

Submitted by dalster on Wed, 2007-03-21 16:18

Exactly what happened, thanks for quick reply.

Submitted by dalster on Wed, 2007-03-21 16:37

Another problem :(

Okay I uploaded my feed.
Filled out the fields, clicked "register and Trial Import, shows in the Admin.
Browsed to homepage, clicked search by Merchant, and I get a page not found?

Submitted by support on Wed, 2007-03-21 16:40

Hi,

This now sounds like you have turned on $config_useRewrite in your config.php but have not yet created a .htaccess file in your installation directory.

To create the file, copy htaccess.txt to .htaccess and upload it to your installation directory.

Please note that this option is only suitable for Linux/Apache servers (by far the most common). If you are on a Windows server, or you are not able to use .htaccess on your hosting account, you will need to disable this feature in config.php as follows:

$config_useRewrite = false;

Hope this helps!
Cheers,
David.

Submitted by dalster on Wed, 2007-03-21 16:45

Yes, I did forget to copy the .htaccess file.
Think I'll take a break and come back fresh.

Thanks again!

Submitted by dalster on Wed, 2007-03-21 17:00

Hi David,

Sorry for all the questions, but,....

Now I've imported the full feed. It times out but thats my server I'd imagine, now, it grabbed 5000+ products which is okay.

When I visit the admin it shows only 10 products for that merchant, although from the homepage searching by merchants it does show the 5000+ products.

So how to update the amount in the admin section?

Submitted by support on Wed, 2007-03-21 17:04

Hi,

This has happened because whilst there are more than 10 products in the database (as many as were imported before it timed out) the actual count displayed on the admin page is not updated until the import finishes - so if it times out it never gets updated.

Check the following thread for lots of help on sorting timeout issues:
http://www.pricetapestry.com/node/582

Cheers,
David.

Submitted by dalster on Wed, 2007-03-21 17:37

Read that thread and I couldn't get it working? In putty it says can not open "import.php"

Would you know what to change in the "my.cnf" that would allow more than 30 seconds, or for that matter what folder I can access it?

Thanks

Submitted by support on Wed, 2007-03-21 18:08

Hi,

The 30 seconds will be an Apache/PHP timeout, not MySQL. However, if you have access to my.cnf I would be suprised if you do not have permissions to modify the PHP default timeout.

Another thing to try is adding the following line to your .htaccess:

php_value max_execution_time 0

On your second point; if you cannot execute import.php make sure you have changed directory to the /scripts directory, and if necessary run it using php , for example:

cd scripts
php import.php merchant.xml

Hope this helps,
Cheers,
David.

Submitted by dalster on Wed, 2007-03-21 18:20

I got it now!

Thanks David

Submitted by EIF Media on Fri, 2012-04-20 00:24

Hi David,

I am also having this issue. I have tried adding the .htaccess file (which seems to have worked) and also tried accessing the merchants section with the useRewrite set to FALSE - is there anything else I can try?

Thank you for your patience.

Daniel Crompton
EIF Media / Tapespotter

Submitted by support on Fri, 2012-04-20 07:56

Hello Daniel,

If you're having the same issue as the original post in this thread it could be that the /feeds/ folder did not extract from the .zip archive, which can happen as the folder is empty and some unzip clients may ignore empty directories.

If this is the case, if you manually create the /feeds/ folder on your server (easiest way is normally using your FTP program - right-click in the remote window and you should see a New Folder... option.

If that's not the case; if you could perhaps let me know the installation URL and any username / password set-up for /admin/ (i'll remove the details before publishing your reply) i'll check it out further...

Cheers,
David.
--
PriceTapestry.com

Submitted by EIF Media on Thu, 2012-04-26 21:43

Thank you kindly for your assistance David,

It turns out my problem was far more elementary! I wasn't installing on the rood directory of my site, however I neglected to properly inform config.php (amending as follows, for anyone else reading this having the same problem: $config_baseHREF = "/***installation directory goes here***/";)

Daniel Crompton
EIF Media / Tapespotter

Submitted by support on Fri, 2012-04-27 08:42

No probs Daniel!

If installing in a sub-directory and using clean URLs don't forget also to update RewriteBase accordingly in .htaccess at line 5 - it's the same value as $config_baseHREF but without the quotes...

Cheers,
David.
--
PriceTapestry.com