New Custom Field Error-supreme

This topic contains 30 replies, has 4 voices, and was last updated by  Stiofan O’Connor 8 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #183883

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    we understood that you are having a problem custom fields. The developers are looking into this, it is most likely a db table limitation.

    Please be patient, we will get back to you as soon as the problem is solved.

    Thanks

    #183884

    iconraju
    Expired Member
    Post count: 187

    Hi Paolo,

    Ok Thanks,

    gsr

    #183908

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi gsr,

    The problem seems to be you are reaching the max blob size for the DB row.
    You have many many custom fields for the one CPT (Places), in addition you have lots of file uploads which require a certain amount of space each.

    I am not sure how technical you are, i will try and explain things simply below:
    We store each custom field as a column on a table for quick processing and filtering of these fields, each CPT has its own table for this. In SQL there is a maximum row size, this theoretical number is 1024 but these would be simple true/false values, when you start making the column types more complex they use more bytes which can lower the count significantly.

    I have made a change to the way the file custom fields are saved to the DB, if you go through each one and save them (just open and click save) they will re-save the new way and give you some more space, if you hit the limit again after this i would consider splitting things into different CPT’s.

    Thanks,

    Stiofan

    #184103

    iconraju
    Expired Member
    Post count: 187

    Hi Stiofan,

    My site requires it.

    You suspicion about my technicalities is right, as I am not good at it and I don’t know much of coding, and more so how to use DBs.

    Initially, I had made different CPTs, but after getting feedback, I realised that the users need to select appropriate CPT to search. However, if the listing has been made in a different CPT, the desired results don’t show up. Moreover,with the power of Multi Location plugin, I had decided to go ahead and design my site on those lines. Apart from the user friendly limitation of search, there was no way of introducing location based Advertisements (see my previous posts on the subject). Paolo had suggested the use of Widget Logic Plugin, but the said plugin limits to selection of Category of Posts, but not the location and I remember you also stating that there is no way to target location based advertisement.

    In view of the these limitations, I had decided to have a sub-site ( I found a Cloning plugin) and I need to have atleast 666+ sub sites (for each Location) for each location and have fewer CPTs,(to enable user friendly search) and I would insert Advertisement based on the location
    based sub sites, and with the help of widget logic, target the category.

    It is for this end target, I had to restrict to fewer CPTs and create more Price Packages to enable listing targeted information and make it user friendly.

    Is there no way to increase the DB size? I am planning to move to Virtual Private Servers. Will this solve the problem? Splitting the CPTs would defeat the purpose and the work done so far would go down the drain.

    As suggested by you, let me open the DBs and Save to see how much improvement is there? You stated that the Upload reserves certain amount of space. Would restricting the size of upload solve the problem?

    I will try out these today and let you know the results.

    Thanks and rgds,

    gsr

    #184106

    iconraju
    Expired Member
    Post count: 187

    Hi Stiofan,

    Some Success. I had taken a cue from your statement that each CPT uses some reserved space.

    Therefore I hit upon the idea to restrict the size of File Upload.

    I had gone to Geo Directory>General>General and reduced the size from (Max Upload File Size) from 2 MB to .55 MB

    I went to place settings and added Multi Select and I did not get any error.

    I hope restricting the file size has discarded some of the earlier reserved space, and probably, because of that it allows adding additional custom fields without any error, I believe.

    I will continue with this and see if the sailing is smooth.

    Will get back to you and thanks for giving a hint.

    gsr

    #184107

    iconraju
    Expired Member
    Post count: 187

    Hi Stiofan,

    I again ran into the same problem, but I overcame it.

    Since the error was showing as “too many Columns”, I had split the Multi Select into four parts, Viz: Facilities Available into Part 1, Part 2, Part 3 and Part 4. It worked without any errors. Please check this link.

    Also I had deleted as many as 7 uploads in Education. I originally had 12 Uploads for Course material brochure; but now I cut it down to only 5.

    As I go, I will keep you posted of the developments.

    gsr

    #184115

    iconraju
    Expired Member
    Post count: 187

    Hi Stiofan,

    Now, the page takes a very long time and the Query Monitor appears below the Footer of the Url: eyp.co.in/hyderabad.

    Here’s the Screenshot and the Link of the URL.

    gsr

    #184284

    iconraju
    Expired Member
    Post count: 187

    HI Stiofan,
    Any respite from the problem. I am stuck now and not able to add any listing. The query monitor continues to repeat after the footer when logged in. The site has become terribly slow to load.
    Has it got to do with the modification of data base as mentioned by you. You may try and revert to the original form. I am not sure, but a Wild guess.

    A line of confirmation would be appreciated

    Gsr

    #184289

    Paolo
    Site Admin
    Post count: 31206

    Hi Stiofan is resolving other problem related to his computer right now. He’ll be back to you as soon as possible.

    Thanks

    #184324

    iconraju
    Expired Member
    Post count: 187

    Hi,
    Ok, I’ll wait.

    Thanks

    Gsr

    #184326

    iconraju
    Expired Member
    Post count: 187

    Hi,
    Ok, I’ll wait.

    Thanks,

    gsr

    #184636

    iconraju
    Expired Member
    Post count: 187

    Hi, Stiofan,

    I have taken up the matter with my hosting provider and it seems that the memory limits of PhpMyAdmin are fixed at 125 MB by default and cannot be modified at this stage, as I am on a shared Hosting Plan. The problem can be resolved by moving to VPS, and also get IP address to get SSL.

    I also remember reading elsewhere in the Forum about Paolo’s remark that the directory site should be on VPS so as to take the traffic and also meet the memory issues.

    Therefore, I would request you to revert the changes you made to the Data Base (your post #183908). Then I will take up a back up and migrate to VPS. (I already have a backup dt 25th April, 2016). But then most of the Custom Fields additions will not appear in that said Back up.

    Pl advise me if I am going in the right direction.

    Thanks and rgds,

    gsr

    #184727

    iconraju
    Expired Member
    Post count: 187

    Hi Stiofan,

    I awaiting your response…..

    gsr

    #184733

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi gsr,

    Sorry for the delay my computer hard drive died.

    The change i made to your site will be made for everyone not just you so there is no need for me to undo it. Did you go through each file custom field and re-save it?
    The size of the file upload has nothing to do with this particular problem, this is a database blob size limitation, we can optimise it a little but there is no way to increase it. The query monitor is just a plugin, it is only shown to admins and will slow page loads down slightly but not much and only for you as an admin, my plan was to disable it after i looked at your events issue but anther dev fixed that already. I have disabled query monitor now.

    Stiofan

    #184750

    iconraju
    Expired Member
    Post count: 187

    Hi Stiofan,

    At the outset, I am indeed sorry about your Hard Drive. In fact, Paolo did mention it to me y’day. I hope the problem has been resolved.

    I guess the problem was with the memory limit in phpMy Admin, set to 125 MB. I had googled about the problem and as per the various suggestions put forth, I got hold of my php.ini from my CPanel and changed the limit to 256MB from 128MB default setting. After the change I was able to add more custom fields without any problem.

    In any case, i have decided to move to VPS shortly.

    I have checked the site and when logged in, the query monitor does not appear. Very good.

    I have not done the custom field exercise, as i was not sure how to go about. My understanding is that i go geo directory>place settings>custom fields. Then open each custom field and save it. Is that right?

    Pl cfm if my understanding is right so that I”ll have it done post haste. Or any other thing I should do?

    Thanks and rgds,

    gsr

Viewing 15 posts - 16 through 30 (of 31 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket