Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7930695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:30:24+00:00 2026-06-03T20:30:24+00:00

I have a problem that only occurs with users who have just signed up

  • 0

I have a problem that only occurs with users who have just signed up for the site and are trying to add a product on my site for the first time. Adding a product is done in two parts. The first is The Product Description. The Second is Product Screen Shots.

After a new user fills out the Product Description and clicks submit, they are taken to the page to upload their product images. However, between the header and the body of the site there is the error

dir occ/54

(This number changes per product)

The solution has been to return to the menu screen, go to the “All Products” view and delete the failed entry. Once you go back to “Add Products” and repeat the process of adding the product description on the first page, the error no longer occurs on the second page.

Apparently for new users, the first time they try to add an item to the database, it is trying to write to a product ID that already exists in the MySQL Database and the OCC folder.

<?
if ($this->tank_auth->is_logged_in())
{
    $id = $this->tank_auth->get_user_id();
    $user = $this->users_m->get_user_by_id($id);
    $profile = $this->users_m->get_user_profile($id);
$fresh = $this->dev->get_fresh_app_id($id); 
$app = $this->dev->get_app_by_id($fresh);

$user_dir = 'occ/' . $id;
$is_it = file_exists($user_dir);
if($is_it != TRUE)
    {
    $dir =  'occ/' . $id;
    echo 'dir ' . $dir;
    mkdir ($dir);
    }

else
{
    $new_dir = 'occ/' . $id . '/' . $app->id;
    $is_itt = file_exists($new_dir);
    if($is_itt != TRUE)
    {
    $dirr =  'occ/' . $id . '/' . $app->id;
    mkdir ($dirr);
    }
}

$logo_path = '../occ/'. $id . '/' . $app->id ;
?>

Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:30:26+00:00Added an answer on June 3, 2026 at 8:30 pm

    Remove this line:

    echo 'dir ' . $dir;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very complicated problem that occurs only for non-admin windows user. I
I have a strange problem that is only happening in a single location. I
I have a JQuery (using JQuery 1.4.2) problem that exhibits only in IE8 in
I have working registration script the only problem is that i do not know
I have a reoccurring DNS problem that has been plaguing our users, occasionally causing
Here's the situation: I have a web-based ticket application, multiple users. One problem that
This problem only occurs in Internet Explorer 8 & 9 I have two dropdowns
In a couple of scripts that I use I have problem that is intermittent.
(I have a problem that I illustrated in this question but had no correct
I have a problem that output string must be utf8-formatted, I am writing currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.